|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.hierarquicalpropertybag.Property
public class Property
Object that represents a property of a Hierarquical Property Bag.
A property has a name, a value that may be a string or array of strings, and a flag that indicates whether the property is readOnly or not. A read only property may not be personalized.
Field Summary | |
---|---|
static String |
DEFAULT_TYPE
|
Constructor Summary | |
---|---|
Property(String name,
List<String> values)
Constructor given a name and string array value for the property. |
|
Property(String name,
String value)
Constructor given a name and single string value for the property. |
Method Summary | |
---|---|
String |
getId()
Returns the identifier of the property |
String |
getName()
Returns the name of the property. |
HierarquicalPropertyBag |
getPropertyBag()
Returns the parent property bag of the property. |
String |
getType()
Returns the type of the property. |
List<String> |
getValues()
Returns the list of values for the property. |
boolean |
isReadOnly()
Returns the is readOnly property of the property. |
void |
setId(String id)
Sets the identifier of the property. |
void |
setReadOnly(boolean readOnly)
Sets the readOnly property. |
void |
setType(String type)
Sets the type of the property. |
void |
setValue(String value)
Sets the value of the property. |
void |
setValues(List<String> values)
Set a array value to the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_TYPE
Constructor Detail |
---|
public Property(String name, String value)
name
- name of the property.value
- value of the property.public Property(String name, List<String> values)
name
- name of the property.values
- list of strings that represent the value of the property.Method Detail |
---|
public String getId()
public void setId(String id)
id
- the identifier of the property.public String getType()
public void setType(String type)
type
- public String getName()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- true if the property should be read only.public List<String> getValues()
public void setValue(String value)
The previous list of values is cleared before creating a new value list of one element that will contain the given value.
value
- the value of the property.public void setValues(List<String> values)
values
- the array value to set.public HierarquicalPropertyBag getPropertyBag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |