Class CsdlTerm
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlTerm
- All Implemented Interfaces:
CsdlAnnotatable
,CsdlNamed
The type Csdl term.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotationsGets applies to.Gets base term.Gets default value.Gets max length.getName()
Gets name.Gets precision.getScale()
Gets scale.getSrid()
Gets srid.getType()
Gets type.boolean
Is nullable.setAnnotations
(List<CsdlAnnotation> annotations) Sets annotations.setAppliesTo
(List<String> appliesTo) Sets applies to.setBaseTerm
(String baseTerm) Sets base term.setDefaultValue
(String defaultValue) Sets default value.setMaxLength
(Integer maxLength) Sets max length.Sets name.setNullable
(boolean nullable) Sets nullable.setPrecision
(Integer precision) Sets precision.Sets scale.Sets srid.Sets type.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlTerm
public CsdlTerm()
-
-
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
-
getBaseTerm
Gets base term.- Returns:
- the base term
-
setBaseTerm
Sets base term.- Parameters:
baseTerm
- the base term- Returns:
- the base term
-
getAppliesTo
Gets applies to.- Returns:
- the applies to
-
setAppliesTo
Sets applies to.- Parameters:
appliesTo
- the applies to- Returns:
- the applies to
-
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
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets annotations.- Parameters:
annotations
- the annotations- Returns:
- the annotations
-
getSrid
Gets srid.- Returns:
- the srid
-
setSrid
Sets srid.- Parameters:
srid
- the srid- Returns:
- the srid
-