Class PropertyAbstract<P>
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.property.PropertyAbstract<P>
- All Implemented Interfaces:
Annotatable,Property<P>,Comparable<Property<?>>
- Direct Known Subclasses:
EntityPropertyMain,NavigationPropertyAbstract
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Annotation>protected booleanprotected booleanprotected booleanFlag indicating the property is system generated and can not be edited by the user. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyAbstract(String name, PropertyType type, boolean readOnly) PropertyAbstract(String name, PropertyType type, boolean readOnly, boolean nullable) -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(Annotation annotation) The name of this property as used in JSON.getName()The name of this property as used in URLs.getType()The class of the type of the value of this property.booleanFlag indicating if this Property is part of the primary key of the Entity.booleanFlag indicating the property can be left out, or explicitly be set to null.booleanFlag indicating the property is system generated and can not be edited by the user.setAnnotations(List<Annotation> annotations) voidsetKeyPart(boolean keyPart) protected voidvoidsetNullable(boolean nullable) protected voidsetType(PropertyType type) toString()
-
Field Details
-
readOnly
protected boolean readOnlyFlag indicating the property is system generated and can not be edited by the user. -
keyPart
protected boolean keyPart -
nullable
protected boolean nullable -
annotations
-
-
Constructor Details
-
PropertyAbstract
-
PropertyAbstract
-
-
Method Details
-
getName
Description copied from interface:PropertyThe name of this property as used in URLs. -
setName
-
getJsonName
Description copied from interface:PropertyThe name of this property as used in JSON.- Specified by:
getJsonNamein interfaceProperty<P>- Returns:
- The name of this property as used in JSON.
-
getType
Description copied from interface:PropertyThe class of the type of the value of this property. -
setType
-
isReadOnly
public boolean isReadOnly()Description copied from interface:PropertyFlag indicating the property is system generated and can not be edited by the user.- Specified by:
isReadOnlyin interfaceProperty<P>- Returns:
- the readOnly flag.
-
isKeyPart
public boolean isKeyPart()Description copied from interface:PropertyFlag indicating if this Property is part of the primary key of the Entity. -
setKeyPart
public void setKeyPart(boolean keyPart) -
isNullable
public boolean isNullable()Description copied from interface:PropertyFlag indicating the property can be left out, or explicitly be set to null.- Specified by:
isNullablein interfaceProperty<P>- Returns:
- The nullable flag.
-
setNullable
public void setNullable(boolean nullable) -
toString
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatable
-
setAnnotations
-
addAnnotation
-