public class Property extends NamedObject
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
Returns the default value.
|
String |
getGetterAccess()
Returns the access level modifier of the getter method.
|
MediaType |
getMediaType()
Returns the media type stored in the content.
|
String |
getPropertyName()
Returns the property name used as a class member.
|
String |
getSetterAccess()
Returns the access level modifier of the setter method.
|
Type |
getType()
Returns the type of the property.
|
boolean |
isConcurrent()
Returns true if this property should be used for optimistic concurrency
checks.
|
boolean |
isNullable()
Returns true if this property is not mandatory.
|
void |
setConcurrent(boolean concurrent)
Indicates if this property should be used for optimistic concurrency
checks.
|
void |
setDefaultValue(String defaultValue)
Sets the default value.
|
void |
setGetterAccess(String getterAccess)
Sets the access level modifier of the getter method.
|
void |
setMediaType(MediaType mediaType)
Sets the media type stored in the content.
|
void |
setNullable(boolean nullable)
Sets true if this property is not mandatory.
|
void |
setSetterAccess(String setterAccess)
Sets the access level modifier of the setter method.
|
void |
setType(Type type)
Sets the type of the property.
|
equals, getName, getNormalizedName, hashCode, toString
public Property(String name)
name
- The name of this property.public String getDefaultValue()
public String getGetterAccess()
public MediaType getMediaType()
public String getPropertyName()
public String getSetterAccess()
public Type getType()
public boolean isConcurrent()
public boolean isNullable()
public void setConcurrent(boolean concurrent)
concurrent
- True if this property should be used for optimistic
concurrency checks.public void setDefaultValue(String defaultValue)
defaultValue
- The default value.public void setGetterAccess(String getterAccess)
getterAccess
- The access level modifier of the getter method.public void setMediaType(MediaType mediaType)
mediaType
- The media type stored in the content.public void setNullable(boolean nullable)
nullable
- True if this property is not mandatory.public void setSetterAccess(String setterAccess)
setterAccess
- The access level modifier of the setter method.public void setType(Type type)
type
- The type of the property.Copyright © 2005–2019. All rights reserved.