Arch4J 1.1

org.arch4j.property
Class Property

java.lang.Object
  |
  +--org.arch4j.property.Property
All Implemented Interfaces:
PropertyConstants

public class Property
extends Object
implements PropertyConstants

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.

Version:
$Revision: 1.3 $
Author:
Ross E. Greinke

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

Property

public Property()
Constructs a 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.


Property

public Property(String key,
                String value,
                String type)
Constructs a Property, specifying all of the property fields.

Parameters:
key - The property key.
value - The property value.
type - The property data type.
Method Detail

getKey

public String getKey()
Returns the property key.

Returns:
The property key.

setKey

public void setKey(String key)
Sets the property key.

Parameters:
key - The property key.

getValue

public String getValue()
Returns the property value.

Returns:
The property value.

setValue

public void setValue(String value)
Sets the property value.

Parameters:
value - The property value.

getType

public String getType()
Returns the property data type.

Returns:
The property data type.

setType

public void setType(String type)
Sets the property data type.

Parameters:
type - The property data type.

isTypeValid

public boolean isTypeValid()
Returns whether the receiver's data type is valid.

Returns:
true, if the type is valid.

isValid

public boolean isValid()
Returns whether the receiver's data fields are valid.

Returns:
true, if the fields are valid.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.