public class SimpleProperty extends Object implements Property, Identifiable<String>, Comparable<Property>
Property-implementationProperty.Type| Constructor and Description |
|---|
SimpleProperty() |
SimpleProperty(String name,
String value) |
SimpleProperty(String name,
String value,
String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property other) |
void |
determineType() |
String |
getActualString() |
byte[] |
getBlob()
If this
Property contains BLOB data, this data is being returned. |
Boolean |
getBoolean()
Returns the
Boolean-value of this Property:
Boolean.TRUE if Property.getString() returns true or 1
Boolean.FALSE if the Property.getString() returns a non-null String
null otherwise
|
Boolean |
getChangedValue() |
String |
getClob()
If this
Property contains CLOB data, this data is being returned. |
String |
getDefaultString()
Returns the default
String-value of this Property. |
String |
getDescription()
Returns the description of this
Property. |
Double |
getDouble()
Returns the
Double-value of this Property using Double.parseDouble(String), if
Property.getString() returns a non-null String, null otherwise. |
Float |
getFloat()
Returns the
Float-value of this Property using Float.parseFloat(String), if
Property.getString() returns a non-null String, null otherwise. |
String |
getId()
Returns the id.
|
Integer |
getInteger()
Returns the
Integer-value of this Property using Integer.parseInt(String), if
Property.getString() returns a non-null String, null otherwise. |
@NotNull @Size(min=3,max=255) String |
getName()
Returns the name of this
Property, as used in Properties.getXXX(String). |
String |
getString()
Returns the
String-value of this Property |
Property.Type |
getType()
Returns the type of this property
|
Object |
getValue() |
Date |
getVersion() |
boolean |
isMandatory() |
void |
setActualString(String value) |
void |
setBlob(byte[] blob) |
void |
setClob(String clob) |
void |
setDefaultString(String defaultValue) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setMandatory(boolean mandatory) |
void |
setName(String name) |
void |
setString(String value) |
void |
setType(Property.Type type) |
void |
setValue(Object value) |
void |
setVersion(Date version) |
String |
toString() |
@NotNull
@Size(min=3,
max=255)
public @NotNull @Size(min=3,max=255) String getName()
PropertyProperty, as used in Properties.getXXX(String).public void setName(String name)
public boolean isMandatory()
isMandatory in interface Propertypublic void setMandatory(boolean mandatory)
public String getId()
IdentifiablegetId in interface Identifiable<String>public void setId(String id)
public Date getVersion()
public void setVersion(Date version)
public String getActualString()
public void setActualString(String value)
public String getDefaultString()
PropertyString-value of this Property.getDefaultString in interface PropertyString-valuepublic void setDefaultString(String defaultValue)
public String getDescription()
PropertyProperty.getDescription in interface Propertypublic void setDescription(String description)
public byte[] getBlob()
PropertyProperty contains BLOB data, this data is being returned.getBlob in interface Propertynull)Properties.getBlob(String)public void setBlob(byte[] blob)
public String getClob()
PropertyProperty contains CLOB data, this data is being returned.getClob in interface Propertynull)Properties.getClob(String),
Properties.getClob(String, String)public void setClob(String clob)
public String getString()
PropertyString-value of this PropertygetString in interface PropertyString-valueProperties.getString(String),
Properties.getString(String, String)public void setString(String value)
public Integer getInteger()
PropertyInteger-value of this Property using Integer.parseInt(String), if
Property.getString() returns a non-null String, null otherwise.getInteger in interface PropertyInteger-value (may be null)Properties.getInteger(String),
Properties.getInteger(String, Integer)public Float getFloat()
PropertyFloat-value of this Property using Float.parseFloat(String), if
Property.getString() returns a non-null String, null otherwise.getFloat in interface PropertyFloat-value (may be null)Properties.getFloat(String),
Properties.getFloat(String, Float)public Double getDouble()
PropertyDouble-value of this Property using Double.parseDouble(String), if
Property.getString() returns a non-null String, null otherwise.getDouble in interface PropertyDouble-value (may be null)Properties.getDouble(String),
Properties.getDouble(String, Double)public Boolean getBoolean()
PropertyBoolean-value of this Property:
Boolean.TRUE if Property.getString() returns true or 1
Boolean.FALSE if the Property.getString() returns a non-null String
null otherwise
getBoolean in interface PropertyBoolean-value (may be null)Properties.getBoolean(String),
Properties.getBoolean(String, Boolean)public Boolean getChangedValue()
public Property.Type getType()
Propertypublic void setType(Property.Type type)
public Object getValue()
public void setValue(Object value)
public void determineType()
public int compareTo(Property other)
compareTo in interface Comparable<Property>Copyright © 2011–2021 aiticon GmbH. All rights reserved.