org.jbind.xml.instance.impl
Class DocumentImpl

java.lang.Object
  extended byorg.jbind.xml.instance.impl.DocumentImpl
All Implemented Interfaces:
IDocumentImpl, IImplContainer

public class DocumentImpl
extends java.lang.Object
implements IDocumentImpl


Constructor Summary
DocumentImpl()
           
 
Method Summary
 IElementImpl addElement(java.lang.String aNamespace, java.lang.String aQName)
          Adds a new element.
 IElementImpl addElement(java.lang.String aNamespace, java.lang.String aQName, java.util.Map aPrefixMappings, ILocation aLocation)
          Adds a new element implementation.
 ITextImpl addText(java.lang.String aText, ILocation aLocation)
          Adds a new text implementation.
 IAnyTypeData getRootData()
           
 java.util.ListIterator iterChildren()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentImpl

public DocumentImpl()
Method Detail

addElement

public IElementImpl addElement(java.lang.String aNamespace,
                               java.lang.String aQName)
Description copied from interface: IImplContainer
Adds a new element. Calls the method addElement(aNamespace, aName, aPrefixMappings, aLocation) with the prefix mappings of this data implementation and the location set to null.

Specified by:
addElement in interface IImplContainer
Parameters:
aNamespace - (required).

addElement

public IElementImpl addElement(java.lang.String aNamespace,
                               java.lang.String aQName,
                               java.util.Map aPrefixMappings,
                               ILocation aLocation)
Description copied from interface: IImplContainer
Adds a new element implementation.

Specified by:
addElement in interface IImplContainer
Parameters:
aNamespace - (required).
aQName - (required).
aPrefixMappings - (required).
aLocation - (optional).
Returns:
(required). The newly created element implementation.

addText

public ITextImpl addText(java.lang.String aText,
                         ILocation aLocation)
Description copied from interface: IImplContainer
Adds a new text implementation.

Specified by:
addText in interface IImplContainer
Parameters:
aText - (required).
Returns:
(required). The newly created text implementation.

getRootData

public IAnyTypeData getRootData()
Specified by:
getRootData in interface IDocumentImpl

iterChildren

public java.util.ListIterator iterChildren()
Specified by:
iterChildren in interface IImplContainer