org.pasoa.query.dom
Class QStructureActivityDocument

java.lang.Object
  extended by org.pasoa.dommap.SimpleNode
      extended by org.pasoa.dommap.SimpleDocument
          extended by org.pasoa.dommap.MappedDocument
              extended by org.pasoa.query.dom.QStructureActivityDocument
All Implemented Interfaces:
Document, Node
Direct Known Subclasses:
QStructureDocument

public class QStructureActivityDocument
extends MappedDocument


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
  QStructureActivityDocument(Retrieval store, InteractionRecord exchange, Map namespaces)
           
protected QStructureActivityDocument(Retrieval store, Map namespaces)
           
 
Method Summary
 String getAttribute(String name)
           
 Attr getAttributeNode(String name)
           
 String getAttributeNS(String namespaceURI, String localName)
           
protected  List getAttributes(String name, Node parent, Map context)
           
protected  Retrieval getBasic()
           
protected  Node getChild(String name, SimpleNode parent, int index, Map context)
           
protected  int getNumberOfChildren(String name, Map context)
           
protected  String getRootElement()
           
 TypeInfo getSchemaTypeInfo()
           
 boolean hasAttribute(String name)
           
 boolean hasAttributeNS(String namespaceURI, String localName)
           
 int hashCode()
           
protected static Map namespaceMap(Map additions)
           
 void removeAttribute(String name)
           
 Attr removeAttributeNode(Attr oldAttr)
           
 void removeAttributeNS(String namespaceURI, String localName)
           
 void setAttribute(String name, String value)
           
 Attr setAttributeNode(Attr newAttr)
           
 void setIdAttribute(String name, boolean isId)
           
 void setIdAttributeNode(Attr idAttr, boolean isId)
           
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
           
 
Methods inherited from class org.pasoa.dommap.MappedDocument
buildAttribute, buildElement, buildText, initialise
 
Methods inherited from class org.pasoa.dommap.SimpleDocument
adoptNode, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, getAttributes, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getFeature, getImplementation, getInputEncoding, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getOwnerDocument, getPreviousSibling, getStrictErrorChecking, getTextContent, getUserData, getXmlEncoding, getXmlStandalone, getXmlVersion, hasAttributes, importNode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, normalizeDocument, removeChild, renameNode, replaceChild, setDocumentURI, setNodeValue, setPrefix, setStrictErrorChecking, setTextContent, setUserData, setXmlStandalone, setXmlVersion
 
Methods inherited from class org.pasoa.dommap.SimpleNode
addNamespace, appendChild, cloneChildren, cloneNode, equals, getAllNamespaces, getAttributeNodeNS, getChildCount, getChildNodes, getFirstChild, getLastChild, getNamespaceForPrefix, getNextSibling, getNodeName, getParentNode, getPrefix, getPrefixForNamespace, getTagName, hasChildNodes, importInto, incorporateChild, setAttributeNodeNS, setAttributeNS, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getParentNode, getPrefix, hasChildNodes
 

Constructor Detail

QStructureActivityDocument

public QStructureActivityDocument(Retrieval store,
                                  InteractionRecord exchange,
                                  Map namespaces)
                           throws Exception
Throws:
Exception

QStructureActivityDocument

protected QStructureActivityDocument(Retrieval store,
                                     Map namespaces)
                              throws Exception
Throws:
Exception
Method Detail

getBasic

protected Retrieval getBasic()

getAttributes

protected List getAttributes(String name,
                             Node parent,
                             Map context)
                      throws UnderlyingModelException
Specified by:
getAttributes in class MappedDocument
Throws:
UnderlyingModelException

getChild

protected Node getChild(String name,
                        SimpleNode parent,
                        int index,
                        Map context)
                 throws UnderlyingModelException
Specified by:
getChild in class MappedDocument
Throws:
UnderlyingModelException

getNumberOfChildren

protected int getNumberOfChildren(String name,
                                  Map context)
Specified by:
getNumberOfChildren in class MappedDocument

getRootElement

protected String getRootElement()
Specified by:
getRootElement in class MappedDocument

namespaceMap

protected static Map namespaceMap(Map additions)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setIdAttributeNode

public void setIdAttributeNode(Attr idAttr,
                               boolean isId)
                        throws DOMException
Throws:
DOMException

setAttributeNode

public Attr setAttributeNode(Attr newAttr)
                      throws DOMException
Throws:
DOMException

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
Throws:
DOMException

getAttribute

public String getAttribute(String name)

getAttributeNode

public Attr getAttributeNode(String name)

hasAttribute

public boolean hasAttribute(String name)

removeAttribute

public void removeAttribute(String name)
                     throws DOMException
Throws:
DOMException

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean isId)
                      throws DOMException
Throws:
DOMException

setIdAttribute

public void setIdAttribute(String name,
                           boolean isId)
                    throws DOMException
Throws:
DOMException

setAttribute

public void setAttribute(String name,
                         String value)
                  throws DOMException
Throws:
DOMException

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
                      throws DOMException
Throws:
DOMException

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
Throws:
DOMException

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
Throws:
DOMException