| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--com.simonstl.common.Name
        |
        +--com.simonstl.common.NamedComponent
              |
              +--com.simonstl.common.StackableComponent
Created by IntelliJ IDEA. User: simon Date: Mar 8, 2003 Time: 11:49:54 AM To change this template use Options | File Templates.
| Field Summary | |
| protected  java.util.HashMap | attributes | 
| protected  java.util.ArrayList | children | 
| protected  StackableComponentI | parent | 
| Fields inherited from class com.simonstl.common.NamedComponent | 
| diagValue, type | 
| Fields inherited from class com.simonstl.common.Name | 
| localName, nsURI, prefix | 
| Constructor Summary | |
| StackableComponent() | |
| StackableComponent(NodeType _type) | |
| 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()Not yet implemented | 
|  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 class com.simonstl.common.NamedComponent | 
| getDiagValue, getType, setDiagValue, setType | 
| Methods inherited from class com.simonstl.common.Name | 
| breakQName, equals, getLocalName, getPrefix, getQName, getUri, hashCode, setLocalName, setPrefix, setQName, setUri, toHashCode | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| 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 | 
| Field Detail | 
protected StackableComponentI parent
protected java.util.HashMap attributes
protected java.util.ArrayList children
| Constructor Detail | 
public StackableComponent()
public StackableComponent(NodeType _type)
| Method Detail | 
public void setParent(StackableComponentI parent)
setParent in interface StackableComponentIparent - the component you want to serve as the parentpublic StackableComponentI getParent()
getParent in interface StackableComponentIpublic void addChild(StackableComponentI child)
addChild in interface StackableComponentIchild - the component to add as a childpublic void addAtt(StackableComponentI att)
addAtt in interface StackableComponentIatt - the attributepublic int getNumChildren()
getNumChildren in interface StackableComponentIpublic int getNumAtts()
getNumAtts in interface StackableComponentIpublic StackableComponentI getChild(int which)
getChild in interface StackableComponentIwhich - the position of the component in question
public StackableComponentI getAtt(java.lang.String NSUri,
                                  java.lang.String localName)
getAtt in interface StackableComponentINSUri - the namespace URI of the attributelocalName - the local name of the attribute
public StackableComponentI getAtt(NamingI name)
getAtt in interface StackableComponentIname - A NamingI with the same namespace URI and local name as the attribute desired.
public java.util.ArrayList getAttsAsList()
getAttsAsList in interface StackableComponentI| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||