|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.property.Property
This class is the primary definition of property content for property management. It is used mainly during the parsing of the XML property file and when new properties are added.
Field Summary |
Fields inherited from interface org.arch4j.property.PropertyConstants |
ADD_STRING, BOOLEAN_CHAR, BOOLEAN_NAME, CHAR_CHAR, CHAR_NAME, DEFAULT_DOMAIN_NAME, DOMAIN_CHAR, DOMAIN_TAG_NAME, DOUBLE_CHAR, DOUBLE_NAME, EMPTY_STRING, FALSE_STRING, FLOAT_CHAR, FLOAT_NAME, INT_CHAR, INT_NAME, KEY_CHAR, KEY_TAG_NAME, LONG_CHAR, LONG_NAME, NAME_CHAR, NAME_TAG_NAME, PROPERTY_CHAR, PROPERTY_TAG_NAME, STRING_CHAR, STRING_NAME, TOP_LEVEL_CHAR, TOP_LEVEL_TAG_NAME, TRUE_STRING, TYPE_CHAR, TYPE_TAG_NAME, VALUE_CHAR, VALUE_TAG_NAME, XML_DECLARATION |
Constructor Summary | |
Property()
Constructs a Property , initialized to empty (null) values. |
|
Property(String key,
String value,
String type)
Constructs a Property , specifying all of the property fields. |
Method Summary | |
String |
getKey()
Returns the property key. |
String |
getType()
Returns the property data type. |
String |
getValue()
Returns the property value. |
boolean |
isTypeValid()
Returns whether the receiver's data type is valid. |
boolean |
isValid()
Returns whether the receiver's data fields are valid. |
void |
setKey(String key)
Sets the property key. |
void |
setType(String type)
Sets the property data type. |
void |
setValue(String value)
Sets the property value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Property()
Property
, initialized to empty (null) values.
This object can be used to incrementally fill in the data fields
when XML is parsed from a file.
public Property(String key, String value, String type)
Property
, specifying all of the property fields.
key
- The property key.value
- The property value.type
- The property data type.Method Detail |
public String getKey()
public void setKey(String key)
key
- The property key.public String getValue()
public void setValue(String value)
value
- The property value.public String getType()
public void setType(String type)
type
- The property data type.public boolean isTypeValid()
true
, if the type is valid.public boolean isValid()
true
, if the fields are valid.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |