public class CsdlDocument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static StringMap |
builtinVocabularyNamespaces |
Constructor and Description |
---|
CsdlDocument() |
Modifier and Type | Method and Description |
---|---|
void |
addCacheHandling()
Add internal metadata to support cache databases.
|
void |
addDeltaHandling()
Add internal metadata to support change tracking.
|
void |
addOwner(java.lang.Object owner)
Register
owner as an owner of this metadata document. |
void |
addRepeatability()
Add internal metadata to support repeatable requests.
|
void |
addVocabularyReference(java.lang.String ns)
|
void |
addVocabularyReference(java.lang.String ns,
java.lang.String uri)
|
void |
addVocabularyReference(java.lang.String ns,
java.lang.String uri,
java.lang.String alias)
Add a well-known vocabulary reference to this metadata.
|
void |
applyAnnotations()
Apply any Security or SQL annotations (from OData namespaces "com.sap.cloud.server.odata.*") to this metadata.
|
static java.lang.String |
excludingAlias(java.lang.String alias,
java.lang.String text)
Return the metadata
text , excluding any references or annotations using the specified alias . |
static XmlDocument |
excludingServerOnly(java.lang.String alias,
XmlDocument xml)
Return the metadata xml, excluding server-only elements.
|
AnnotationTermMap |
getAnnotationTerms()
Return map of annotation terms defined by the CSDL.
|
DataTypeMap |
getBuiltinTypes()
Return map of predefined CSDL data types.
|
boolean |
getCanChangeAnything()
Return allows any model element to be changed in the latest service metadata before calling
DataService.refreshMetadata . |
boolean |
getCanRemoveAnything()
Return allows any model element to be removed in the latest service metadata before calling
DataService.refreshMetadata . |
ComplexType |
getComplexType(java.lang.String name)
Lookup a complex type by qualified name.
|
ComplexTypeMap |
getComplexTypes()
Return map of complex types defined by the CSDL.
|
EntitySetMap |
getDatabaseTables()
Return entity sets that are mapped to database tables.
|
DataMethod |
getDataMethod(java.lang.String name)
Lookup a data method by qualified name (for function/action definitions) or by unqualified name (for function/action imports).
|
DataMethodMap |
getDataMethods()
Return map of data methods (actions, functions) defined by the CSDL.
|
DataSchema |
getDataSchema(java.lang.String name)
Lookup a data schema by name.
|
DataSchemaMap |
getDataSchemas()
Return map of data schemas defined by the CSDL.
|
EntityContainer |
getDefaultContainer()
Return (nullable) Default entity container defined by the CSDL (or
null if there are no containers defined). |
EntityContainerMap |
getEntityContainers()
Return map of entity containers defined by the CSDL.
|
EntitySet |
getEntitySet(java.lang.String name)
Lookup an entity set (or singleton entity) by name.
|
EntitySetMap |
getEntitySets()
Return map of entity sets defined by the CSDL.
|
EntityType |
getEntityType(java.lang.String name)
Lookup an entity type by qualified name.
|
EntityTypeMap |
getEntityTypes()
Return map of entity types defined by the CSDL.
|
EnumType |
getEnumType(java.lang.String name)
Lookup an enum type by qualified name.
|
EnumTypeMap |
getEnumTypes()
Return map of enum types defined by the CSDL.
|
DataMethodMap |
getLookupMethods()
For internal use only.
|
EntitySetMap |
getLookupSets()
For internal use only.
|
EntitySetMap |
getLookupSingletons()
For internal use only.
|
DataSchema |
getMainSchema()
Return (nullable) Main data schema defined by the CSDL (or
null if there are no schemas defined). |
java.lang.String |
getOriginalText()
Return (nullable) Original CSDL (XML) text.
|
ObjectList |
getOwners()
Return all the current registered owners of this metadata document.
|
PathAnnotationsMap |
getPathAnnotations()
Return map of path annotations defined by the CSDL (where the
TargetPath does not directly reference a model element). |
java.lang.String |
getProxyVersion()
Return (nullable) If this metadata was parsed by generated proxy classes, then the framework version that generated the proxies.
|
java.lang.String |
getResolvedText()
Return (nullable) Resolved CSDL (XML) text, with inline references and expanded aliases.
|
SimpleType |
getSimpleType(java.lang.String name)
Lookup a simple type by qualified name.
|
SimpleTypeMap |
getSimpleTypes()
Return map of simple types defined by the CSDL.
|
EntitySet |
getSingleton(java.lang.String name)
Lookup a singleton entity by name.
|
EntitySetMap |
getSingletons()
Return map of singletons defined by the CSDL.
|
java.lang.String |
getSourceFile()
Return (nullable) Source file name if known, otherwise
null . |
StringMap |
getTopAliases()
Return top-level aliases defined by the CSDL.
|
CsdlReferenceList |
getTopReferences()
Return top-level references defined by the CSDL.
|
DataSchemaList |
getTopSchemas()
Return top-level schemas defined by the CSDL.
|
int |
getVersionCode()
Return code for the OData version, e.g.
|
java.lang.String |
getVersionText()
Return text for the OData version, e.g.
|
StringMap |
getXmlNamespaces()
Return map of XML namespaces defined by the CSDL.
|
boolean |
hasGeneratedProxies()
Return
true if this metadata is associated with generated proxy classes. |
boolean |
hasOpenEnumerations()
Return allows addition of enumeration members in the latest service metadata before calling
DataService.refreshMetadata . |
boolean |
hasTopReference(java.lang.String ns)
Return
true if this document includes a top-level reference for CSDL namespace ns . |
boolean |
hasTopSchema(java.lang.String ns)
Return
true if this document includes a top-level schema for CSDL namespace ns . |
void |
inheritAnnotations()
Inherit annotations from entity types to entity sets in this metadata.
|
void |
removeOwner(java.lang.Object owner)
Unregister
owner as an owner of this metadata document. |
void |
removeReferences(java.lang.String alias)
Remove from
CsdlDocument.originalText any references or annotations using the specified alias . |
void |
removeServerOnly(java.lang.String vocabularyAlias)
Remove from
CsdlDocument.originalText any elements which have a child ServerOnly Annotation element. |
void |
resolveEntity(EntityValue entity)
Resolve the
EntityValue.entitySet of `entity' (if it is not already set). |
void |
setCanChangeAnything(boolean value)
Set allows any model element to be changed in the latest service metadata before calling
DataService.refreshMetadata . |
void |
setCanRemoveAnything(boolean value)
Set allows any model element to be removed in the latest service metadata before calling
DataService.refreshMetadata . |
void |
setDefaultContainer(EntityContainer value)
Set default entity container defined by the CSDL (or
null if there are no containers defined). |
void |
setGeneratedProxies(boolean value)
Set
true if this metadata is associated with generated proxy classes. |
void |
setJoinSetRelations()
Set the JoinSetRelations object to all navigation properties which has "JoinUsing" annotation.
|
void |
setMainSchema(DataSchema value)
Set main data schema defined by the CSDL (or
null if there are no schemas defined). |
void |
setOpenEnumerations(boolean value)
Set allows addition of enumeration members in the latest service metadata before calling
DataService.refreshMetadata . |
void |
setOriginalText(java.lang.String value)
Set original CSDL (XML) text.
|
void |
setProxyVersion(java.lang.String value)
Set if this metadata was parsed by generated proxy classes, then the framework version that generated the proxies.
|
void |
setResolvedText(java.lang.String value)
Set resolved CSDL (XML) text, with inline references and expanded aliases.
|
void |
setSourceFile(java.lang.String value)
Set source file name if known, otherwise
null . |
void |
setVersionCode(int value)
Set code for the OData version, e.g.
|
void |
setVersionText(java.lang.String value)
Set text for the OData version, e.g.
|
public static final StringMap builtinVocabularyNamespaces
public void addCacheHandling()
Add internal metadata to support cache databases.
public void addDeltaHandling()
Add internal metadata to support change tracking.
public void addOwner(java.lang.Object owner)
Register owner
as an owner of this metadata document.
owner
- Metadata owner.public void addRepeatability()
Add internal metadata to support repeatable requests.
public void addVocabularyReference(java.lang.String ns)
ns
- Ns parameter.public void addVocabularyReference(java.lang.String ns, java.lang.String uri)
ns
- Ns parameter.uri
- Uri parameter.public void addVocabularyReference(java.lang.String ns, java.lang.String uri, java.lang.String alias)
Add a well-known vocabulary reference to this metadata. If this metadata already has a reference to the well-known vocabulary, then no change is made.
If the reference is to one of the CsdlDocument.builtinVocabularyNamespaces
, then all defined annotation terms/types from the vocabulary will also be added to the current metadata.
ns
- CSDL namespace.uri
- (nullable) Optional namespace URI. For builtin vocabulary namespaces, this can be derived from the namespace. For references to non-builtin vocabularies, it must be provided.alias
- (nullable) Optional namespace alias. For builtin vocabulary namespaces, this can be derived from the namespace. For references to non-builtin vocabularies, it can be provided.public void applyAnnotations()
Apply any Security or SQL annotations (from OData namespaces "com.sap.cloud.server.odata.*") to this metadata.
public static java.lang.String excludingAlias(java.lang.String alias, java.lang.String text)
Return the metadata text
, excluding any references or annotations using the specified alias
.
alias
- Namespace/alias (or comma-separated list of namespaces/aliases).text
- Metadata text.text
, excluding any references or annotations using the specified alias
.public static XmlDocument excludingServerOnly(java.lang.String alias, XmlDocument xml)
Return the metadata xml, excluding server-only elements.
alias
- (nullable) Optional alias for the vocabulary defining the ServerOnly
annotation.xml
- Metadata XML.public AnnotationTermMap getAnnotationTerms()
Return map of annotation terms defined by the CSDL.
public DataTypeMap getBuiltinTypes()
Return map of predefined CSDL data types.
public boolean getCanChangeAnything()
Return allows any model element to be changed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability (depending on the changes) if the application uses proxy classes!
DataService.refreshMetadata
. Defaults to false
.public boolean getCanRemoveAnything()
Return allows any model element to be removed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability unless the application checks isRemoved
flags on model elements!
DataService.refreshMetadata
. Defaults to false
.public ComplexType getComplexType(java.lang.String name)
Lookup a complex type by qualified name. If the complex type does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
public void checkComplexTypeExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getComplexTypes() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation")) { Ignore.valueOf_any(csdlDocument.getComplexType("Microsoft.OData.Service.Sample.TrippinInMemory.Models.EventLocation")); } else { } }
CsdlDocument.complexTypes
, for looking up types that might not exist.
name
- Name of the complex type to be returned.public ComplexTypeMap getComplexTypes()
Return map of complex types defined by the CSDL.
public DataMethod getDataMethod(java.lang.String name)
Lookup a data method by qualified name (for function/action definitions) or by unqualified name (for function/action imports).
If the data method does not exist it indicates a fundamental implementation problem, therefore a non-catchable
FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up data methods before calling this method like in the
following code snippet:
public void checkDataMethodInCsdlDocumentExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getLookupMethods() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person.UpdatePersonLastName")) { Ignore.valueOf_any(csdlDocument.getDataMethod("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Person.UpdatePersonLastName")); } else { } }
CsdlDocument.dataMethods
, for looking up methods that might not exist.
name
- Name of the data method to be returned.public DataMethodMap getDataMethods()
Return map of data methods (actions, functions) defined by the CSDL.
public DataSchema getDataSchema(java.lang.String name)
Lookup a data schema by name. If the data schema does not exist it indicates a fundamental
implementation problem, therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up data schemas before calling this method like in the
following code snippet:
public void checkDataSchemaExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getDataSchemas() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models")) { Ignore.valueOf_any(csdlDocument.getDataSchema("Microsoft.OData.Service.Sample.TrippinInMemory.Models")); } else { } }
CsdlDocument.dataSchemas
, for looking up schemas that might not exist.
name
- Name of the data schema to be returned.public DataSchemaMap getDataSchemas()
Return map of data schemas defined by the CSDL.
public EntitySetMap getDatabaseTables()
Return entity sets that are mapped to database tables.
public EntityContainer getDefaultContainer()
Return (nullable) Default entity container defined by the CSDL (or null
if there are no containers defined).
null
if there are no containers defined).public EntityContainerMap getEntityContainers()
Return map of entity containers defined by the CSDL.
public EntitySet getEntitySet(java.lang.String name)
Lookup an entity set (or singleton entity) by name. If the entity set does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
Note that OData singleton entities are represented by entity sets where EntitySet.isSingleton
is true
.
public void checkEntitySetInCsdlDocumentExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getEntitySets() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airlines")) { Ignore.valueOf_any(csdlDocument.getEntitySet("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airlines")); } else { } }
CsdlDocument.entitySets
, for looking up sets that might not exist.
name
- Name of the entity set to be returned.public EntitySetMap getEntitySets()
Return map of entity sets defined by the CSDL.
public EntityType getEntityType(java.lang.String name)
Lookup an entity type by qualified name. If the entity type does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
public void checkEntityTypeExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getEntityTypes() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport")) { Ignore.valueOf_any(csdlDocument.getEntityType("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport")); } else { } }
CsdlDocument.entityTypes
, for looking up types that might not exist.
name
- Name of the entity type to be returned.public EntityTypeMap getEntityTypes()
Return map of entity types defined by the CSDL.
public EnumType getEnumType(java.lang.String name)
Lookup an enum type by qualified name. If the enum type does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
public void checkEnumTypeExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getEnumTypes() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender")) { Ignore.valueOf_any(csdlDocument.getEnumType("Microsoft.OData.Service.Sample.TrippinInMemory.Models.PersonGender")); } else { } }
CsdlDocument.enumTypes
, for looking up types that might not exist.
name
- Name of the enum type to be returned.public EnumTypeMap getEnumTypes()
Return map of enum types defined by the CSDL.
public DataMethodMap getLookupMethods()
For internal use only.
public EntitySetMap getLookupSets()
For internal use only.
public EntitySetMap getLookupSingletons()
For internal use only.
public DataSchema getMainSchema()
Return (nullable) Main data schema defined by the CSDL (or null
if there are no schemas defined).
null
if there are no schemas defined).public java.lang.String getOriginalText()
Return (nullable) Original CSDL (XML) text.
CsdlOption.RETAIN_ORIGINAL_TEXT.
public ObjectList getOwners()
Return all the current registered owners of this metadata document.
public PathAnnotationsMap getPathAnnotations()
Return map of path annotations defined by the CSDL (where the TargetPath
does not directly reference a model element).
TargetPath
does not directly reference a model element).public java.lang.String getProxyVersion()
Return (nullable) If this metadata was parsed by generated proxy classes, then the framework version that generated the proxies. Otherwise null
.
null
.public java.lang.String getResolvedText()
Return (nullable) Resolved CSDL (XML) text, with inline references and expanded aliases.
CsdlOption.RETAIN_RESOLVED_TEXT.
public SimpleType getSimpleType(java.lang.String name)
Lookup a simple type by qualified name. If the simple type does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
public void checkSimpleTypeExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getSimpleTypes() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.MySimpleType")) { Ignore.valueOf_any(csdlDocument.getSimpleType("Microsoft.OData.Service.Sample.TrippinInMemory.Models.MySimpleType")); } else { } }
CsdlDocument.simpleTypes
, for looking up types that might not exist.
name
- Name of the simple type to be returned.public SimpleTypeMap getSimpleTypes()
Return map of simple types defined by the CSDL.
public EntitySet getSingleton(java.lang.String name)
Lookup a singleton entity by name. If the singleton entity does not exist it indicates a fundamental implementation problem,
therefore a non-catchable FatalException
will be thrown, and the app intentionally crashes.
The reason behind this drastic behaviour is to avoid mismatch between server and client.
It is still possible to avoid the FatalException
by looking up simplet types before calling this method like in the
following code snippet:
Note that OData singleton entities are represented by entity sets where EntitySet.isSingleton
is true
.
public void checkSingletonExistsExample() { com.sap.cloud.server.odata.csdl.CsdlDocument csdlDocument = this.getService() .getMetadata(); if (csdlDocument.getSingletons() .has("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Container/Me")) { Ignore.valueOf_any(csdlDocument.getSingleton("Microsoft.OData.Service.Sample.TrippinInMemory.Models.Container/Me")); } else { } }
CsdlDocument.entitySets
, for looking up sets that might not exist.
name
- Name of the entity set to be returned.public EntitySetMap getSingletons()
Return map of singletons defined by the CSDL.
Each singleton is represented by an EntitySet
with isSingleton == true
public java.lang.String getSourceFile()
Return (nullable) Source file name if known, otherwise null
.
null
.public StringMap getTopAliases()
Return top-level aliases defined by the CSDL. This is a map from schema namespace to schema alias.
public CsdlReferenceList getTopReferences()
Return top-level references defined by the CSDL.
public DataSchemaList getTopSchemas()
Return top-level schemas defined by the CSDL.
public int getVersionCode()
Return code for the OData version, e.g. 400. If the OData version is considered as a decimal number (e.g. 4.0), then multiplying by 100 will give the code (e.g. 400).
public java.lang.String getVersionText()
Return text for the OData version, e.g. "4.0".
public StringMap getXmlNamespaces()
Return map of XML namespaces defined by the CSDL.
public boolean hasGeneratedProxies()
Return true
if this metadata is associated with generated proxy classes. Defaults to false
(generated proxies will override to true
).
true
if this metadata is associated with generated proxy classes. Defaults to false
(generated proxies will override to true
).public boolean hasOpenEnumerations()
Return allows addition of enumeration members in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability if the application uses proxy classes without "-open:enumerations".
DataService.refreshMetadata
. Defaults to false
.public boolean hasTopReference(java.lang.String ns)
Return true
if this document includes a top-level reference for CSDL namespace ns
.
ns
- CSDL namespace.public boolean hasTopSchema(java.lang.String ns)
Return true
if this document includes a top-level schema for CSDL namespace ns
.
ns
- CSDL namespace.public void inheritAnnotations()
Inherit annotations from entity types to entity sets in this metadata.
public void removeOwner(java.lang.Object owner)
Unregister owner
as an owner of this metadata document.
owner
- Metadata owner.public void removeReferences(java.lang.String alias)
Remove from CsdlDocument.originalText
any references or annotations using the specified alias
.
alias
- Namespace/alias (or comma-separated list of namespaces/aliases).public void removeServerOnly(java.lang.String vocabularyAlias)
Remove from CsdlDocument.originalText
any elements which have a child ServerOnly Annotation element.
vocabularyAlias
- (nullable) Namespace/alias name of the SQL vocabulary.public void resolveEntity(EntityValue entity)
Resolve the EntityValue.entitySet
of `entity' (if it is not already set).
DataServiceException
if entity.entitySet
is not set, and is not unique (i.e. multiple entity sets use the same entity type)
entity
- Entity to resolve.public void setCanChangeAnything(boolean value)
Set allows any model element to be changed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability (depending on the changes) if the application uses proxy classes!
value
- Allows any model element to be changed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.public void setCanRemoveAnything(boolean value)
Set allows any model element to be removed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability unless the application checks isRemoved
flags on model elements!
value
- Allows any model element to be removed in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.public void setDefaultContainer(EntityContainer value)
Set default entity container defined by the CSDL (or null
if there are no containers defined).
value
- Default entity container defined by the CSDL (or null
if there are no containers defined).public void setGeneratedProxies(boolean value)
Set true
if this metadata is associated with generated proxy classes. Defaults to false
(generated proxies will override to true
).
value
- true
if this metadata is associated with generated proxy classes. Defaults to false
(generated proxies will override to true
).public void setJoinSetRelations()
Set the JoinSetRelations object to all navigation properties which has "JoinUsing" annotation. Without running this method the navigation through join entity sets cannot be resolved.
public void setMainSchema(DataSchema value)
Set main data schema defined by the CSDL (or null
if there are no schemas defined).
value
- Main data schema defined by the CSDL (or null
if there are no schemas defined).public void setOpenEnumerations(boolean value)
Set allows addition of enumeration members in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.
Warning: enabling this option can result in application instability if the application uses proxy classes without "-open:enumerations".
value
- Allows addition of enumeration members in the latest service metadata before calling DataService.refreshMetadata
. Defaults to false
.public void setOriginalText(java.lang.String value)
Set original CSDL (XML) text.
CsdlOption.RETAIN_ORIGINAL_TEXT.
value
- Original CSDL (XML) text.public void setProxyVersion(java.lang.String value)
Set if this metadata was parsed by generated proxy classes, then the framework version that generated the proxies. Otherwise null
.
value
- If this metadata was parsed by generated proxy classes, then the framework version that generated the proxies. Otherwise null
.public void setResolvedText(java.lang.String value)
Set resolved CSDL (XML) text, with inline references and expanded aliases.
CsdlOption.RETAIN_RESOLVED_TEXT.
value
- Resolved CSDL (XML) text, with inline references and expanded aliases.public void setSourceFile(java.lang.String value)
Set source file name if known, otherwise null
.
value
- Source file name if known, otherwise null
.public void setVersionCode(int value)
Set code for the OData version, e.g. 400. If the OData version is considered as a decimal number (e.g. 4.0), then multiplying by 100 will give the code (e.g. 400).
value
- Code for the OData version, e.g. 400.public void setVersionText(java.lang.String value)
Set text for the OData version, e.g. "4.0".
value
- Text for the OData version, e.g. "4.0".