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()
Property
Property
, as used in Properties.getXXX(String)
.public void setName(String name)
public boolean isMandatory()
isMandatory
in interface Property
public void setMandatory(boolean mandatory)
public String getId()
Identifiable
getId
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()
Property
String
-value of this Property
.getDefaultString
in interface Property
String
-valuepublic void setDefaultString(String defaultValue)
public String getDescription()
Property
Property
.getDescription
in interface Property
public void setDescription(String description)
public byte[] getBlob()
Property
Property
contains BLOB data, this data is being returned.getBlob
in interface Property
null
)Properties.getBlob(String)
public void setBlob(byte[] blob)
public String getClob()
Property
Property
contains CLOB data, this data is being returned.getClob
in interface Property
null
)Properties.getClob(String)
,
Properties.getClob(String, String)
public void setClob(String clob)
public String getString()
Property
String
-value of this Property
getString
in interface Property
String
-valueProperties.getString(String)
,
Properties.getString(String, String)
public void setString(String value)
public Integer getInteger()
Property
Integer
-value of this Property
using Integer.parseInt(String)
, if
Property.getString()
returns a non-null String
, null
otherwise.getInteger
in interface Property
Integer
-value (may be null
)Properties.getInteger(String)
,
Properties.getInteger(String, Integer)
public Float getFloat()
Property
Float
-value of this Property
using Float.parseFloat(String)
, if
Property.getString()
returns a non-null String
, null
otherwise.getFloat
in interface Property
Float
-value (may be null
)Properties.getFloat(String)
,
Properties.getFloat(String, Float)
public Double getDouble()
Property
Double
-value of this Property
using Double.parseDouble(String)
, if
Property.getString()
returns a non-null String
, null
otherwise.getDouble
in interface Property
Double
-value (may be null
)Properties.getDouble(String)
,
Properties.getDouble(String, Double)
public Boolean getBoolean()
Property
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
getBoolean
in interface Property
Boolean
-value (may be null
)Properties.getBoolean(String)
,
Properties.getBoolean(String, Boolean)
public Boolean getChangedValue()
public Property.Type getType()
Property
public 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–2020 aiticon GmbH. All rights reserved.