public class CsdlProperty extends CsdlAbstractEdmItem implements CsdlNamed, CsdlAnnotatable
Constructor and Description |
---|
CsdlProperty() |
Modifier and Type | Method and Description |
---|---|
List<CsdlAnnotation> |
getAnnotations()
Returns a list of annotations
|
String |
getDefaultValue()
Gets default value.
|
CsdlMapping |
getMapping()
Gets mapping.
|
Integer |
getMaxLength()
Gets max length.
|
String |
getMimeType()
Gets mime type.
|
String |
getName()
Gets name.
|
Integer |
getPrecision()
Gets precision.
|
Integer |
getScale()
Gets scale.
|
SRID |
getSrid()
Gets srid.
|
String |
getType()
Gets type.
|
FullQualifiedName |
getTypeAsFQNObject()
Gets type as fQN object.
|
boolean |
isCollection()
Is collection.
|
boolean |
isNullable()
Is nullable.
|
boolean |
isUnicode()
Is unicode.
|
CsdlProperty |
setAnnotations(List<CsdlAnnotation> annotations)
Sets a list of annotations
|
CsdlProperty |
setCollection(boolean isCollection)
Sets collection.
|
CsdlProperty |
setDefaultValue(String defaultValue)
Sets default value.
|
CsdlProperty |
setMapping(CsdlMapping mapping)
Sets mapping.
|
CsdlProperty |
setMaxLength(Integer maxLength)
Sets max length.
|
CsdlProperty |
setMimeType(String mimeType)
Sets mime type.
|
CsdlProperty |
setName(String name)
Sets name.
|
CsdlProperty |
setNullable(boolean nullable)
Sets nullable.
|
CsdlProperty |
setPrecision(Integer precision)
Sets precision.
|
CsdlProperty |
setScale(Integer scale)
Sets scale.
|
CsdlProperty |
setSrid(SRID srid)
Sets srid.
|
CsdlProperty |
setType(FullQualifiedName fqnName)
Sets type.
|
CsdlProperty |
setType(String type)
Sets type.
|
CsdlProperty |
setUnicode(boolean unicode)
Sets unicode.
|
getAllByName, getOneByName
public CsdlProperty setName(String name)
name
- the namepublic String getType()
public CsdlProperty setType(String type)
type
- the typepublic FullQualifiedName getTypeAsFQNObject()
public CsdlProperty setType(FullQualifiedName fqnName)
fqnName
- the fqn namepublic boolean isCollection()
public CsdlProperty setCollection(boolean isCollection)
isCollection
- the is collectionpublic String getDefaultValue()
public CsdlProperty setDefaultValue(String defaultValue)
defaultValue
- the default valuepublic boolean isNullable()
public CsdlProperty setNullable(boolean nullable)
nullable
- the nullablepublic Integer getMaxLength()
public CsdlProperty setMaxLength(Integer maxLength)
maxLength
- the max lengthpublic Integer getPrecision()
public CsdlProperty setPrecision(Integer precision)
precision
- the precisionpublic Integer getScale()
public CsdlProperty setScale(Integer scale)
scale
- the scalepublic boolean isUnicode()
public CsdlProperty setUnicode(boolean unicode)
unicode
- the unicodepublic String getMimeType()
public CsdlProperty setMimeType(String mimeType)
mimeType
- the mime typepublic CsdlMapping getMapping()
public CsdlProperty setMapping(CsdlMapping mapping)
mapping
- the mappingpublic List<CsdlAnnotation> getAnnotations()
CsdlAnnotatable
getAnnotations
in interface CsdlAnnotatable
public CsdlProperty setAnnotations(List<CsdlAnnotation> annotations)
annotations
- list of annotationspublic CsdlProperty setSrid(SRID srid)
srid
- the sridpublic SRID getSrid()
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.