|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abbreviated information about context - stores names, type, nothing else.
Method Summary | |
void |
addAtt(StackableComponentI att)
Adds an attribute to this component. |
void |
addChild(StackableComponentI child)
Adds a child component to this component. |
StackableComponentI |
getAtt(NamingI name)
Returns an attribute, identified by anything conforming to NamingI |
StackableComponentI |
getAtt(java.lang.String NSUri,
java.lang.String localName)
Returns an attribute, identified by namespace URI and localName |
java.util.ArrayList |
getAttsAsList()
Will permit easy sequential access to attribute values. |
StackableComponentI |
getChild(int which)
Returns the child - identified by number - of the current element. |
int |
getNumAtts()
Returns the number of attributes contained by this component. |
int |
getNumChildren()
Returns the number of children (not attributes) contained by this component. |
StackableComponentI |
getParent()
Returns the parent of this component |
void |
setParent(StackableComponentI parent)
Sets the parent component for this component |
Methods inherited from interface com.simonstl.common.NamedComponentI |
getDiagValue, getType, setDiagValue, setType |
Methods inherited from interface com.simonstl.common.NamingI |
equals, getLocalName, getPrefix, getQName, getUri, hashCode, setLocalName, setPrefix, setQName, setUri |
Method Detail |
public void setParent(StackableComponentI parent)
parent
- the component you want to serve as the parentpublic StackableComponentI getParent()
public void addChild(StackableComponentI child)
child
- the component to add as a childpublic void addAtt(StackableComponentI att)
att
- the attributepublic int getNumChildren()
public int getNumAtts()
public StackableComponentI getChild(int which)
which
- the position of the component in question
public StackableComponentI getAtt(java.lang.String NSUri, java.lang.String localName)
NSUri
- the namespace URI of the attributelocalName
- the local name of the attribute
public StackableComponentI getAtt(NamingI name)
name
- A NamingI with the same namespace URI and local name as the attribute desired.
public java.util.ArrayList getAttsAsList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |