public class ODataMetaPropertyDefaultImpl extends AnnotableDefaultImpl implements ODataMetaProperty
ODataMetaProperty
.ODataMetaProperty.EDMType
Constructor and Description |
---|
ODataMetaPropertyDefaultImpl(java.lang.String name,
ODataMetaProperty.EDMType edmType,
java.lang.String typeName,
boolean isKey,
java.util.Map<AnnotationName,java.lang.String> annotations,
java.util.Map<java.lang.String,java.lang.String> facets)
Constructor of property default impl.
|
ODataMetaPropertyDefaultImpl(java.lang.String name,
ODataMetaProperty.EDMType edmType,
java.lang.String typeName,
boolean isKey,
java.util.Map<AnnotationName,java.lang.String> annotations,
java.util.Map<java.lang.String,java.lang.String> facets,
java.util.Map<AnnotationName,ODataMetaAnnotation> v4annotations)
Constructor of property default impl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnnotation(AnnotationName name)
Retrieves the annotation value of the entity set 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 entity set 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 |
getFacet(java.lang.String name)
Retrieves the facet value specified by the given facet name.
|
java.util.Set<java.lang.String> |
getFacetNames()
Retrieves the facet names of this property.
|
java.lang.String |
getName()
Retrieves the name of the Property.
|
ODataMetaProperty.EDMType |
getType()
Retrieves the OData type of the Property.
|
java.lang.String |
getTypeName()
Retrieves the name of the type if the type is complex, otherwise it is null.
|
int |
hashCode() |
boolean |
isKey()
Retrieves if the property is key.
|
getVocabularyAnnotation, getVocabularyAnnotation, getVocabularyAnnotationNames, setVocabularyAnnotations
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getVocabularyAnnotation, getVocabularyAnnotation, getVocabularyAnnotationNames
public ODataMetaPropertyDefaultImpl(java.lang.String name, ODataMetaProperty.EDMType edmType, java.lang.String typeName, boolean isKey, java.util.Map<AnnotationName,java.lang.String> annotations, java.util.Map<java.lang.String,java.lang.String> facets)
name
- name of the property. MUST be non-null, otherwise IllegalArgumentException is thrownedmType
- the OData type of the Property (see ODataMetaProperty.EDMType
). MUST be
non-null, otherwise IllegalArgumentException is throwntypeName
- the name of the type if the type is complex. Otherwise it must be nullisKey
- specifies if the property is keyannotations
- 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, annotations, facets or edmType parameter is nullpublic ODataMetaPropertyDefaultImpl(java.lang.String name, ODataMetaProperty.EDMType edmType, java.lang.String typeName, boolean isKey, java.util.Map<AnnotationName,java.lang.String> annotations, java.util.Map<java.lang.String,java.lang.String> facets, java.util.Map<AnnotationName,ODataMetaAnnotation> v4annotations)
name
- name of the property. MUST be non-null, otherwise IllegalArgumentException is thrownedmType
- the OData type of the Property (see ODataMetaProperty.EDMType
). MUST be
non-null, otherwise IllegalArgumentException is throwntypeName
- the name of the type if the type is complex. Otherwise it must be nullisKey
- specifies if the property is keyannotations
- 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: v4annotations
- Odata v4.0 vocabulary-based annotationsjava.lang.IllegalArgumentException
- if name, annotations, facets or edmType parameter is nullpublic java.lang.String getName()
ODataMetaProperty
getName
in interface ODataMetaProperty
public ODataMetaProperty.EDMType getType()
ODataMetaProperty
ODataMetaProperty.EDMType
.getType
in interface ODataMetaProperty
public boolean isKey()
ODataMetaProperty
isKey
in interface ODataMetaProperty
public java.lang.String getTypeName()
ODataMetaProperty
getTypeName
in interface ODataMetaProperty
public java.util.Set<java.lang.String> getFacetNames()
ODataMetaProperty
getFacetNames
in interface ODataMetaProperty
public java.lang.String getFacet(java.lang.String name)
ODataMetaProperty
getFacet
in interface ODataMetaProperty
name
- the name of the facet. MUST be non-null, otherwise IllegalArgumentException is thrownpublic java.util.Set<AnnotationName> getAnnotationNames()
ODataMetaProperty
getAnnotationNames
in interface ODataMetaProperty
public java.lang.String getAnnotation(AnnotationName name)
ODataMetaProperty
getAnnotation
in interface ODataMetaProperty
name
- fully qualified annotation name. MUST be non-null, otherwise IllegalArgumentException is thrownpublic java.lang.String getAnnotation(java.lang.String namespace, java.lang.String name)
ODataMetaProperty
getAnnotation
in interface ODataMetaProperty
namespace
- namespace of the annotationname
- localname of the annotation. MUST be non-null, otherwise IllegalArgumentException is thrownpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object