Class CsdlProperty
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlProperty
- All Implemented Interfaces:
CsdlAnnotatable
,CsdlNamed
The type Csdl property.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotationsGets default value.Gets mapping.Gets max length.Gets mime type.getName()
Gets name.Gets precision.getScale()
Gets scale.Gets scaleAsString.getSrid()
Gets srid.getType()
Gets type.Gets type as fQN object.boolean
Is collection.boolean
Is nullable.boolean
Is unicode.setAnnotations
(List<CsdlAnnotation> annotations) Sets a list of annotationssetCollection
(boolean isCollection) Sets collection.setDefaultValue
(String defaultValue) Sets default value.setMapping
(CsdlMapping mapping) Sets mapping.setMaxLength
(Integer maxLength) Sets max length.setMimeType
(String mimeType) Sets mime type.Sets name.setNullable
(boolean nullable) Sets nullable.setPrecision
(Integer precision) Sets precision.Sets scale.setScaleAsString
(String scaleAsString) Sets scaleAsString.Sets srid.Sets type.setType
(FullQualifiedName fqnName) Sets type.setUnicode
(boolean unicode) Sets unicode.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlProperty
public CsdlProperty()
-
-
Method Details
-
getName
Description copied from interface:CsdlNamed
Gets name. -
setName
Sets name.- Parameters:
name
- the name- Returns:
- the name
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-
getTypeAsFQNObject
Gets type as fQN object.- Returns:
- the type as fQN object
-
setType
Sets type.- Parameters:
fqnName
- the fqn name- Returns:
- the type
-
isCollection
public boolean isCollection()Is collection.- Returns:
- the boolean
-
setCollection
Sets collection.- Parameters:
isCollection
- the is collection- Returns:
- the collection
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
setDefaultValue
Sets default value.- Parameters:
defaultValue
- the default value- Returns:
- the default value
-
isNullable
public boolean isNullable()Is nullable.- Returns:
- the boolean
-
setNullable
Sets nullable.- Parameters:
nullable
- the nullable- Returns:
- the nullable
-
getMaxLength
Gets max length.- Returns:
- the max length
-
setMaxLength
Sets max length.- Parameters:
maxLength
- the max length- Returns:
- the max length
-
getPrecision
Gets precision.- Returns:
- the precision
-
setPrecision
Sets precision.- Parameters:
precision
- the precision- Returns:
- the precision
-
getScale
Gets scale.- Returns:
- the scale
-
setScale
Sets scale.- Parameters:
scale
- the scale- Returns:
- the scale
-
getScaleAsString
Gets scaleAsString.- Returns:
- the scaleAsString
-
setScaleAsString
Sets scaleAsString.- Parameters:
scaleAsString
- the scaleAsString- Returns:
- the scaleAsString
-
isUnicode
public boolean isUnicode()Is unicode.- Returns:
- the boolean
-
setUnicode
Sets unicode.- Parameters:
unicode
- the unicode- Returns:
- the unicode
-
getMimeType
Gets mime type.- Returns:
- the mime type
-
setMimeType
Sets mime type.- Parameters:
mimeType
- the mime type- Returns:
- the mime type
-
getMapping
Gets mapping.- Returns:
- the mapping
-
setMapping
Sets mapping.- Parameters:
mapping
- the mapping- Returns:
- the mapping
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets a list of annotations- Parameters:
annotations
- list of annotations- Returns:
- this instance
-
setSrid
Sets srid.- Parameters:
srid
- the srid- Returns:
- the srid
-
getSrid
Gets srid.- Returns:
- the srid
-