public class ODataMetaFunctionParameterDefaultImpl extends java.lang.Object implements ODataMetaFunctionParameter
ODataMetaFunctionParameter
.ODataMetaFunctionParameter.ParameterMode
Constructor and Description |
---|
ODataMetaFunctionParameterDefaultImpl(java.lang.String name,
java.lang.String typeName,
boolean isCollection,
ODataMetaFunctionParameter.ParameterMode mode,
java.util.Map<AnnotationName,java.lang.String> annotations,
java.util.Map<java.lang.String,java.lang.String> facets)
Constructor function parameter default impl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnnotation(AnnotationName annotationName)
Retrieves one annotation value specified by the given fully qualified annotation name.
|
java.lang.String |
getAnnotation(java.lang.String namespace,
java.lang.String name)
Retrieves annotation value of the parameter specified by the given annotation namespace and annotation localname.
|
java.util.Set<AnnotationName> |
getAnnotationNames()
Retrieves the set of annotation names of the parameter.
|
java.lang.String |
getFacet(java.lang.String name)
Retrieves facet value of the parameter specified by the given facet name.
|
java.util.Set<java.lang.String> |
getFacetNames()
Retrieves the set of existing facet's names in the parameter.
|
ODataMetaFunctionParameter.ParameterMode |
getMode()
Retrieves the parameter mode.
|
java.lang.String |
getName()
Retrieves the name of the function parameter.
|
java.lang.String |
getTypeName()
Retrieves the type name of the parameter.
|
int |
hashCode() |
boolean |
isCollection()
Retrieves whether the parameter is collection.
|
public ODataMetaFunctionParameterDefaultImpl(java.lang.String name, java.lang.String typeName, boolean isCollection, ODataMetaFunctionParameter.ParameterMode mode, java.util.Map<AnnotationName,java.lang.String> annotations, java.util.Map<java.lang.String,java.lang.String> facets)
name
- the name of the function import parameter. MUST be non-null, otherwise IllegalArgumentException is throwntypeName
- the type name of the parameter. It can be fully qualified entity type name, EDM type or the complex type name. MUST be non-null, otherwise IllegalArgumentException is thrownisCollection
- specifies whether the parameter is collectionmode
- the parameter mode. It can be IN, OUT, INOUT.annotations
- 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 thrownfacets
- map of facets where the key is the name of the facet and the value is the value of the facet. The facet names can be: java.lang.IllegalArgumentException
- if name, facets, annotations or typeName parameter is nullpublic java.lang.String getName()
ODataMetaFunctionParameter
getName
in interface ODataMetaFunctionParameter
public java.lang.String getTypeName()
ODataMetaFunctionParameter
getTypeName
in interface ODataMetaFunctionParameter
public boolean isCollection()
ODataMetaFunctionParameter
isCollection
in interface ODataMetaFunctionParameter
public java.util.Set<java.lang.String> getFacetNames()
ODataMetaFunctionParameter
getFacetNames
in interface ODataMetaFunctionParameter
public java.lang.String getFacet(java.lang.String name)
ODataMetaFunctionParameter
getFacet
in interface ODataMetaFunctionParameter
name
- the name of the facet. MUST be non-null, otherwise NullPointerException is thrownpublic java.util.Set<AnnotationName> getAnnotationNames()
ODataMetaFunctionParameter
getAnnotationNames
in interface ODataMetaFunctionParameter
public java.lang.String getAnnotation(AnnotationName annotationName)
ODataMetaFunctionParameter
getAnnotation
in interface ODataMetaFunctionParameter
annotationName
- the fully qualified name of the annotation. MUST be non-null, otherwise NullPointerException is thrownpublic java.lang.String getAnnotation(java.lang.String namespace, java.lang.String name)
ODataMetaFunctionParameter
getAnnotation
in interface ODataMetaFunctionParameter
namespace
- the namespace of the annotation, can be nullname
- the localname of the annotation. MUST be non-null, otherwise NullPointerException is thrownpublic ODataMetaFunctionParameter.ParameterMode getMode()
ODataMetaFunctionParameter
getMode
in interface ODataMetaFunctionParameter
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object