|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attribute
Atribute
s are used to provide extra informations for an
Element
of a Dimension
. Each Element
can have
several distinct attributes.
With the setChildren(Attribute[])
method it is possible to build up
an hierarchy of Attributes
.
Field Summary | |
---|---|
static int |
TYPE_NUMERIC
|
static int |
TYPE_STRING
|
Method Summary | |
---|---|
Attribute[] |
getChildren()
Returns the children of this attribute |
java.lang.String |
getId()
The unique attribute identifier |
java.lang.String |
getName()
The attribute name |
Attribute[] |
getParents()
Returns the parent attributes of this attribute |
int |
getType()
Returns the attribute type which is one of the defined type constants |
java.lang.Object |
getValue(Element element)
Returns the attribute value for the given Element instance. |
java.lang.Object[] |
getValues(Element[] elements)
Convenient method to receive the values for several Element s
at once. |
boolean |
hasChildren()
Checks if this attribute has any children attributes. |
void |
removeChildren(Attribute[] attributes)
Convenient method to remove children attributes from this attribute |
void |
setChildren(Attribute[] attributes)
Sets the children attributes of this attribute. |
void |
setName(java.lang.String name)
Sets the attribute name |
void |
setValue(Element element,
java.lang.Object value)
Sets the attribute value for the given Element instance. |
void |
setValues(Element[] elements,
java.lang.Object[] values)
Convenient method to set the values for several Element s
at once, i.e. the attribute value for the i.th element is set to the
i.th object. |
Field Detail |
---|
static final int TYPE_STRING
static final int TYPE_NUMERIC
Method Detail |
---|
java.lang.String getId()
java.lang.String getName()
void setName(java.lang.String name)
name
- the new attribute namejava.lang.Object getValue(Element element)
Element
instance.
element
- the Element
to get the attribute value from
void setValue(Element element, java.lang.Object value)
Element
instance.
element
- the Element
which attribute value to setvalue
- the new attribute valuevoid setValues(Element[] elements, java.lang.Object[] values)
Element
s
at once, i.e. the attribute value for the i.th element is set to the
i.th object.
elements
- the elements to set the values forvalues
- the new valuesjava.lang.Object[] getValues(Element[] elements)
Element
s
at once.
elements
- the elements to get the values from
boolean hasChildren()
void setChildren(Attribute[] attributes)
Note: this will remove all previously set children. Specifying null is allowed and will remove all children!
attributes
- the attribute childrenvoid removeChildren(Attribute[] attributes)
attributes
- attribute children to removeAttribute[] getChildren()
Attribute[] getParents()
int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |