T
- type of the property valuepublic class Property<T>
extends java.lang.Object
Constructor and Description |
---|
Property()
Empty Constructor.
|
Property(java.lang.String id,
T value)
Creates an Attribute with specified path and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
category()
Return the Property category, e.g.
|
java.lang.String |
id()
Return the Property identifier.
|
void |
readObject(java.io.InputStream iStream) |
void |
setCategory(java.lang.String category)
Set category field value.
|
void |
setId(java.lang.String id)
Set id field value.
|
void |
setValue(T value)
Set value field.
|
java.lang.String |
toString() |
T |
value()
Return the Property value.
|
void |
writeObject(java.io.OutputStream oStream) |
public Property()
public Property(java.lang.String id, T value)
id
- value
- public java.lang.String id()
public void setId(java.lang.String id)
id
- valuepublic java.lang.String category()
public void setCategory(java.lang.String category)
category
- valuepublic T value()
public void setValue(T value)
value
- public void readObject(java.io.InputStream iStream) throws java.lang.Exception
java.lang.Exception
public void writeObject(java.io.OutputStream oStream) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object