java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlTerm
All Implemented Interfaces:
CsdlAnnotatable, CsdlNamed

public class CsdlTerm extends CsdlAbstractEdmItem implements CsdlNamed, CsdlAnnotatable
The type Csdl term.
  • Constructor Details

    • CsdlTerm

      public CsdlTerm()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: CsdlNamed
      Gets name.
      Specified by:
      getName in interface CsdlNamed
      Returns:
      the name
    • setName

      public CsdlTerm setName(String name)
      Sets name.
      Parameters:
      name - the name
      Returns:
      the name
    • getType

      public String getType()
      Gets type.
      Returns:
      the type
    • setType

      public CsdlTerm setType(String type)
      Sets type.
      Parameters:
      type - the type
      Returns:
      the type
    • getBaseTerm

      public String getBaseTerm()
      Gets base term.
      Returns:
      the base term
    • setBaseTerm

      public CsdlTerm setBaseTerm(String baseTerm)
      Sets base term.
      Parameters:
      baseTerm - the base term
      Returns:
      the base term
    • getAppliesTo

      public List<String> getAppliesTo()
      Gets applies to.
      Returns:
      the applies to
    • setAppliesTo

      public CsdlTerm setAppliesTo(List<String> appliesTo)
      Sets applies to.
      Parameters:
      appliesTo - the applies to
      Returns:
      the applies to
    • getDefaultValue

      public String getDefaultValue()
      Gets default value.
      Returns:
      the default value
    • setDefaultValue

      public CsdlTerm setDefaultValue(String defaultValue)
      Sets default value.
      Parameters:
      defaultValue - the default value
      Returns:
      the default value
    • isNullable

      public boolean isNullable()
      Is nullable.
      Returns:
      the boolean
    • setNullable

      public CsdlTerm setNullable(boolean nullable)
      Sets nullable.
      Parameters:
      nullable - the nullable
      Returns:
      the nullable
    • getMaxLength

      public Integer getMaxLength()
      Gets max length.
      Returns:
      the max length
    • setMaxLength

      public CsdlTerm setMaxLength(Integer maxLength)
      Sets max length.
      Parameters:
      maxLength - the max length
      Returns:
      the max length
    • getPrecision

      public Integer getPrecision()
      Gets precision.
      Returns:
      the precision
    • setPrecision

      public CsdlTerm setPrecision(Integer precision)
      Sets precision.
      Parameters:
      precision - the precision
      Returns:
      the precision
    • getScale

      public Integer getScale()
      Gets scale.
      Returns:
      the scale
    • setScale

      public CsdlTerm setScale(Integer scale)
      Sets scale.
      Parameters:
      scale - the scale
      Returns:
      the scale
    • getAnnotations

      public List<CsdlAnnotation> getAnnotations()
      Description copied from interface: CsdlAnnotatable
      Returns a list of annotations
      Specified by:
      getAnnotations in interface CsdlAnnotatable
      Returns:
      list of annotations
    • setAnnotations

      public CsdlTerm setAnnotations(List<CsdlAnnotation> annotations)
      Sets annotations.
      Parameters:
      annotations - the annotations
      Returns:
      the annotations
    • getSrid

      public SRID getSrid()
      Gets srid.
      Returns:
      the srid
    • setSrid

      public CsdlTerm setSrid(SRID srid)
      Sets srid.
      Parameters:
      srid - the srid
      Returns:
      the srid