public class DynamicStructuredType extends Object implements EdmStructuredType
| Constructor and Description |
|---|
DynamicStructuredType(EdmStructuredType startType) |
| Modifier and Type | Method and Description |
|---|---|
DynamicStructuredType |
addProperty(EdmProperty property) |
boolean |
compatibleTo(EdmType targetType)
Checks if this type is convertible to parameter
targetType |
EdmAnnotation |
getAnnotation(EdmTerm term,
String qualifier) |
List<EdmAnnotation> |
getAnnotations()
Get list of all annotations.
|
EdmStructuredType |
getBaseType()
Base types are described in the OData protocol specification.
|
FullQualifiedName |
getFullQualifiedName() |
EdmTypeKind |
getKind() |
String |
getName() |
String |
getNamespace()
Namespace of this
EdmType. |
EdmNavigationProperty |
getNavigationProperty(String name)
Get navigation property by name.
|
List<String> |
getNavigationPropertyNames()
Get all navigation property names.
|
EdmElement |
getProperty(String name)
Get property by name
|
List<String> |
getPropertyNames()
Get all simple and complex property names.
|
EdmProperty |
getStructuralProperty(String name)
Get structural property by name.
|
boolean |
hasStaticProperty(String name) |
boolean |
isAbstract()
Indicates if the structured type is abstract.
|
boolean |
isOpenType()
Indicates if the structured type is an open type.
|
public DynamicStructuredType(EdmStructuredType startType)
public DynamicStructuredType addProperty(EdmProperty property)
public EdmElement getProperty(String name)
EdmStructuredTypegetProperty in interface EdmStructuredTypename - name of propertyEdmTypedpublic boolean hasStaticProperty(String name)
public List<String> getPropertyNames()
EdmStructuredTypegetPropertyNames in interface EdmStructuredTypepublic EdmProperty getStructuralProperty(String name)
EdmStructuredTypegetStructuralProperty in interface EdmStructuredTypename - name of structural propertyEdmTypedpublic EdmNavigationProperty getNavigationProperty(String name)
EdmStructuredTypegetNavigationProperty in interface EdmStructuredTypename - name of navigation propertyEdmTypedpublic List<String> getNavigationPropertyNames()
EdmStructuredTypegetNavigationPropertyNames in interface EdmStructuredTypepublic String getNamespace()
EdmTypeEdmType.getNamespace in interface EdmTypepublic FullQualifiedName getFullQualifiedName()
getFullQualifiedName in interface EdmTypepublic EdmTypeKind getKind()
getKind in interface EdmTypeEdmTypeKind of this EdmTypepublic EdmAnnotation getAnnotation(EdmTerm term, String qualifier)
getAnnotation in interface EdmAnnotatableterm - term used for the annotation. MUST NOT be null.qualifier - for the term. Can be NULLpublic List<EdmAnnotation> getAnnotations()
EdmAnnotatablegetAnnotations in interface EdmAnnotatablepublic EdmStructuredType getBaseType()
EdmStructuredTypegetBaseType in interface EdmStructuredTypeEdmStructuredTypepublic boolean compatibleTo(EdmType targetType)
EdmStructuredTypetargetTypecompatibleTo in interface EdmStructuredTypetargetType - target type for which compatibility is checkedpublic boolean isOpenType()
EdmStructuredTypeisOpenType in interface EdmStructuredTypetrue if the structured type is openpublic boolean isAbstract()
EdmStructuredTypeisAbstract in interface EdmStructuredTypetrue if the structured type is abstractCopyright © 2023. All rights reserved.