|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.impl.Property2Impl
public class Property2Impl
Field Summary |
---|
Fields inherited from interface org.palo.api.Property2 |
---|
TYPE_BOOLEAN, TYPE_NUMERIC, TYPE_STRING |
Fields inherited from interface org.palo.api.PaloObject |
---|
TYPE_ATTRIBUTE, TYPE_NORMAL, TYPE_SYSTEM, TYPE_USER_INFO |
Method Summary | |
---|---|
void |
addChild(Property2 child)
Adds a new child to this property. |
boolean |
canBeModified()
Returns true if this object can be modified (renamed, deleted, ...), false otherwise. |
boolean |
canCreateChildren()
Returns true if this object can create child objects, false otherwise. |
void |
clearChildren()
Clears all children of this property. |
int |
getChildCount()
Returns the number of children of this property. |
Property2[] |
getChildren()
Returns all child properties of this property. |
Property2[] |
getChildren(java.lang.String childId)
Returns all child properties with the specified id. |
java.lang.String |
getChildValue(java.lang.String childId)
Returns the value for the first child with the specified id or an empty string no such child exists. |
java.lang.String |
getId()
Returns the unique identifier of this palo object. |
java.lang.String |
getName()
Returns the name of the entity. |
Property2 |
getParent()
Returns the parent of this property or null if no parent exists. |
int |
getType()
Returns the type of this property. |
java.lang.String |
getValue()
Returns the string representation of this property's value. |
boolean |
isReadOnly()
Returns true if this property cannot be modified. |
void |
removeChild(Property2 child)
Removes a given child from this property. |
void |
setValue(java.lang.String newValue)
Sets the new value for this property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addChild(Property2 child)
Property2
addChild
in interface Property2
child
- the property to add to this property.public void clearChildren()
Property2
clearChildren
in interface Property2
public int getChildCount()
Property2
getChildCount
in interface Property2
public Property2[] getChildren()
Property2
getChildren
in interface Property2
public Property2 getParent()
Property2
getParent
in interface Property2
public java.lang.String getValue()
Property2
getValue
in interface Property2
public void removeChild(Property2 child)
Property2
removeChild
in interface Property2
public void setValue(java.lang.String newValue)
Property2
setValue
in interface Property2
newValue
- a new value for this property.public java.lang.String getId()
PaloObject
Important note: for a correct usage please note that the returned id is only unique within the parent scope of this palo object. Furthermore in case of deletion the id is reused, i.e. if a palo object is removed its id could be given to a newly created palo object afterwards!!
getId
in interface PaloObject
public java.lang.String getName()
NamedEntity
getName
in interface NamedEntity
public boolean isReadOnly()
Property2
isReadOnly
in interface Property2
public java.lang.String getChildValue(java.lang.String childId)
Property2
getChildValue
in interface Property2
childId
- the id of the child property.
public Property2[] getChildren(java.lang.String childId)
Property2
getChildren
in interface Property2
childId
- the id of the child properties which should be returned.
public boolean canBeModified()
Writable
canBeModified
in interface Writable
public boolean canCreateChildren()
Writable
canCreateChildren
in interface Writable
public int getType()
Property2
getType
in interface PaloObject
getType
in interface Property2
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |