|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.connector.Data
com.infoengine.connector.Element
public class Element
represents Info*Engine element data.
Elements contain Attributes.
Elements are contained within Groups
Attribute,
Group,
Serialized Form| Constructor Summary | |
|---|---|
Element()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute a)
add an attribute to this element |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
add and create a new attribute to this element |
boolean |
equals(java.lang.Object other)
compare this element with another for equality |
Attribute |
getAttribute(java.lang.String name)
get an attribute by name |
int |
getAttributeCount()
get the number of attributes contained by this element |
java.util.Enumeration |
getAttributes()
get an Enumeration of all attributes contained by this element |
java.lang.Object |
getAttributeValue(java.lang.String name)
get an attribute's value by name if attribute is multi-valued then the first value is returned. |
java.util.Enumeration |
getAttributeValues(java.lang.String name)
get an attribute's values by name. |
int |
hashCode()
generate this Element's hashCode value is based on all attributes and metadata. |
java.lang.String |
toString()
return a String representation of this Element (resembles XML useful for deugging only) |
| Methods inherited from class com.infoengine.connector.Data |
|---|
addMetaValue, getMetaNames, getMetaValue, getMetaValues, removeMetaValues, setMetaValue |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Element()
| Method Detail |
|---|
public void addAttribute(Attribute a)
a - the attribute to add
public void addAttribute(java.lang.String name,
java.lang.Object value)
name - attribute namevalue - attribute valuepublic java.util.Enumeration getAttributes()
public int getAttributeCount()
public Attribute getAttribute(java.lang.String name)
name - the attribute name
public java.lang.Object getAttributeValue(java.lang.String name)
name - the attribute name
public java.util.Enumeration getAttributeValues(java.lang.String name)
name - the attribute name
public boolean equals(java.lang.Object other)
equals in class Datapublic int hashCode()
hashCode in class Datapublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||