public class ODataMetaFunctionImportDefaultImpl extends AnnotableDefaultImpl implements ODataMetaFunctionImport
ODataMetaFunctionImport
.Constructor and Description |
---|
ODataMetaFunctionImportDefaultImpl(java.lang.String name,
java.lang.String returnTypeName,
boolean isReturnCollection,
java.lang.String returnEntitySetName,
java.lang.String callMethod,
java.util.Map<java.lang.String,ODataMetaFunctionParameter> parameters,
java.util.Map<AnnotationName,java.lang.String> annotations)
Constructor function import default implementation.
|
ODataMetaFunctionImportDefaultImpl(java.lang.String name,
java.lang.String returnTypeName,
boolean isReturnCollection,
java.lang.String returnEntitySetName,
java.lang.String callMethod,
java.util.Map<java.lang.String,ODataMetaFunctionParameter> parameters,
java.util.Map<AnnotationName,java.lang.String> annotations,
java.util.Map<AnnotationName,ODataMetaAnnotation> v4annotations)
Constructor function import default implementation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnnotation(AnnotationName name)
Retrieves the annotation value of the function import specified by the given fully qualified annotation name.
|
java.lang.String |
getAnnotation(java.lang.String namespace,
java.lang.String name)
Retrieves the annotation value of the function import specified by the given annotation namespace and localname.
|
java.util.Set<AnnotationName> |
getAnnotationNames()
Retrieves the set of annotation names of the entity set.
|
java.lang.String |
getCallMethod()
Retrieves the HTTP method name (GET, POST, ...).
|
java.lang.String |
getName()
Retrieves the name of the function import.
|
ODataMetaFunctionParameter |
getParameter(java.lang.String name)
Retrieves the function parameter specified by the given name.
|
java.util.Set<java.lang.String> |
getParameterNames()
Retrieves the set of parameter names of the function import.
|
java.lang.String |
getReturnEntitySetName()
Retrieves the entity set name of the return type.
|
java.lang.String |
getReturnTypeName()
Retrieves the return type name (part of edm:ReturnType attribute).
|
int |
hashCode() |
boolean |
isReturnCollection()
Checks if the return type is collection.
|
getVocabularyAnnotation, getVocabularyAnnotation, getVocabularyAnnotationNames, setVocabularyAnnotations
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getVocabularyAnnotation, getVocabularyAnnotation, getVocabularyAnnotationNames
public ODataMetaFunctionImportDefaultImpl(java.lang.String name, java.lang.String returnTypeName, boolean isReturnCollection, java.lang.String returnEntitySetName, java.lang.String callMethod, java.util.Map<java.lang.String,ODataMetaFunctionParameter> parameters, java.util.Map<AnnotationName,java.lang.String> annotations)
name
- name of the function import. MUST be non-null, otherwise IllegalArgumentException is thrownreturnTypeName
- the return type name (part of edm:ReturnType attribute). It can be fully qualified entity type name, edm type or the
complex type name.isReturnCollection
- specifies if the return type is collectionreturnEntitySetName
- the entity set name of the return typecallMethod
- the HTTP method nameparameters
- map of parameters where the key is the name of a parameter and the value is the metadata representation of the
parameter. MUST be non-null, otherwise IllegalArgumentException is thrownannotations
- map of annotations where the key is the fully qualified annotation name and the value is the annotation value. MUST
be non-null, otherwise IllegalArgumentException is thrownjava.lang.IllegalArgumentException
- if name parameter is nullpublic ODataMetaFunctionImportDefaultImpl(java.lang.String name, java.lang.String returnTypeName, boolean isReturnCollection, java.lang.String returnEntitySetName, java.lang.String callMethod, java.util.Map<java.lang.String,ODataMetaFunctionParameter> parameters, java.util.Map<AnnotationName,java.lang.String> annotations, java.util.Map<AnnotationName,ODataMetaAnnotation> v4annotations)
name
- name of the function import. MUST be non-null, otherwise IllegalArgumentException is thrownreturnTypeName
- the return type name (part of edm:ReturnType attribute). It can be fully qualified entity type name, edm type or the
complex type name.isReturnCollection
- specifies if the return type is collectionreturnEntitySetName
- the entity set name of the return typecallMethod
- the HTTP method nameparameters
- map of parameters where the key is the name of a parameter and the value is the metadata representation of the
parameter. MUST be non-null, otherwise IllegalArgumentException is thrownannotations
- map of annotations where the key is the fully qualified annotation name and the value is the annotation value. MUST
be non-null, otherwise IllegalArgumentException is thrownv4annotations
- Odata v4.0 vocabulary-based annotationsjava.lang.IllegalArgumentException
- if name parameter is nullpublic java.lang.String getName()
ODataMetaFunctionImport
getName
in interface ODataMetaFunctionImport
public java.lang.String getReturnTypeName()
ODataMetaFunctionImport
getReturnTypeName
in interface ODataMetaFunctionImport
public boolean isReturnCollection()
ODataMetaFunctionImport
isReturnCollection
in interface ODataMetaFunctionImport
public java.lang.String getReturnEntitySetName()
ODataMetaFunctionImport
getReturnEntitySetName
in interface ODataMetaFunctionImport
public java.lang.String getCallMethod()
ODataMetaFunctionImport
getCallMethod
in interface ODataMetaFunctionImport
public java.util.Set<java.lang.String> getParameterNames()
ODataMetaFunctionImport
getParameterNames
in interface ODataMetaFunctionImport
public ODataMetaFunctionParameter getParameter(java.lang.String name)
ODataMetaFunctionImport
getParameter
in interface ODataMetaFunctionImport
name
- name of the parameter. MUST be non-null, otherwise NullPointerException is thrownpublic java.util.Set<AnnotationName> getAnnotationNames()
ODataMetaFunctionImport
getAnnotationNames
in interface ODataMetaFunctionImport
public java.lang.String getAnnotation(AnnotationName name)
ODataMetaFunctionImport
getAnnotation
in interface ODataMetaFunctionImport
name
- fully qualified annotation name. MUST be non-null, otherwise NullPointerException is thrownpublic java.lang.String getAnnotation(java.lang.String namespace, java.lang.String name)
ODataMetaFunctionImport
getAnnotation
in interface ODataMetaFunctionImport
namespace
- namespace of the annotation, can be nullname
- localname of the annotation. MUST be non-null, otherwise NullPointerException is thrownpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object