uk.ac.ic.doc.automed.wrappers.xsdomobject
Class ComplexType

java.lang.Object
  extended by uk.ac.ic.doc.automed.wrappers.xsdomobject.XSDOMObject
      extended by uk.ac.ic.doc.automed.wrappers.xsdomobject.ComplexType

public class ComplexType
extends XSDOMObject

Define the internal representation for an XMLSchema complexType


Field Summary
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.xsdomobject.XSDOMObject
icon, keyref, maxOccurs, minOccurs, name, parent, required, so, type
 
Constructor Summary
ComplexType(java.lang.String name)
          Creates a new instance of ComplexType
 
Method Summary
 void addChild(java.util.ArrayList list)
          Add a list of child elements
 void addChild(Element name)
          Add a child element
 void addChildAttribute(Attribute name)
          Add a child Attribute
 void addChildAttributes(java.util.ArrayList atts)
          Add a list of child Attributes
 boolean getAdded()
          Get whether or not this has been added to the AutoMed Schema
 java.lang.String getBaseType()
          Return whether or not this has been used as a subtype
 Element getChild(java.lang.String name)
          Get a child element
 java.util.ArrayList getChildAttributes()
          Return any child attributes
 java.util.ArrayList getChildren()
          Return any child elements
 XSDOMObject getPrimaryKey()
          Get the primary key for this complexType
 java.lang.String getType()
          Return the type
 void setAdded()
          Set that this has been added to the AutoMed schema
 void setBaseType(java.lang.String baseType)
          Set whether or this is being used as a subtype
 void setPrimaryKey(XSDOMObject primaryKey)
          Set the primary key for this complexType
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.xsdomobject.XSDOMObject
getIcon, getKeyRef, getMaxOccurs, getMinOccurs, getName, getParent, getSchemaObject, setIcon, setKeyRef, setMaxOccurs, setMinOccurs, setName, setParent, setSchemaObject, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexType

public ComplexType(java.lang.String name)
Creates a new instance of ComplexType

Method Detail

addChild

public void addChild(Element name)
Add a child element


getChild

public Element getChild(java.lang.String name)
Get a child element


addChild

public void addChild(java.util.ArrayList list)
Add a list of child elements


addChildAttribute

public void addChildAttribute(Attribute name)
Add a child Attribute


addChildAttributes

public void addChildAttributes(java.util.ArrayList atts)
Add a list of child Attributes


getType

public java.lang.String getType()
Return the type

Overrides:
getType in class XSDOMObject

getBaseType

public java.lang.String getBaseType()
Return whether or not this has been used as a subtype


getChildren

public java.util.ArrayList getChildren()
Return any child elements


getChildAttributes

public java.util.ArrayList getChildAttributes()
Return any child attributes


getPrimaryKey

public XSDOMObject getPrimaryKey()
Get the primary key for this complexType


setPrimaryKey

public void setPrimaryKey(XSDOMObject primaryKey)
Set the primary key for this complexType


setBaseType

public void setBaseType(java.lang.String baseType)
Set whether or this is being used as a subtype


setAdded

public void setAdded()
Set that this has been added to the AutoMed schema


getAdded

public boolean getAdded()
Get whether or not this has been added to the AutoMed Schema