org.jbind.xml.core.bridge
Interface IElementImpl

All Superinterfaces:
IDataImpl, IHasLocation, IImpl, IImplChild, IImplContainer, IImplWithText
All Known Subinterfaces:
IDomElement
All Known Implementing Classes:
DomElement, ElementFactoryImpl, ElementFactoryImpl, ElementImpl

public interface IElementImpl
extends IDataImpl, IImplContainer


Method Summary
 IAttributeImpl addAttribute(java.lang.String aNamespace, java.lang.String aQName, ITextContentProvider aProvider, boolean anIsDefault, ILocation aLocation)
           
 IAttributeImpl addAttribute(java.lang.String aNamespace, java.lang.String aQName, java.lang.String aValue, boolean anIsDefault, ILocation aLocation)
          Adds an attribute.
 IAttributeImpl getAttributeImpl(java.lang.String aNamespace, java.lang.String aName)
          Gets an attribute implementation.
 java.lang.String getNamespaceForPrefix(java.lang.String aPrefix)
          Gets a namespace for a prefix.
 java.lang.String getPrefixForNamespace(java.lang.String aNamespace, boolean aCreate)
          Gets a prefix for a namespace.
 java.util.Iterator iterAttributeImpls()
          Iterates the attribute implementations.
 void removeAttribute(java.lang.String aNamespace, java.lang.String aName)
           
 void setDefaultAttrCreator(IDefaultAttrCreator aCreator)
           
 void setDefaultTextContent(java.lang.String aString)
           
 
Methods inherited from interface org.jbind.xml.core.bridge.IDataImpl
getData, getNamespace, getPartName, iterAttributes, setData
 
Methods inherited from interface org.jbind.xml.core.data.IImpl
accept, getAttributeData, getPrefixToNamespaceMapping, isNil, iterChildren, iterElementData
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplChild
getParentImpl
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplWithText
getTextContent, hasTextContent, isDefault, restoreTextContent, saveTextContent, setTextContent, setTextContent
 
Methods inherited from interface org.jbind.xml.core.bridge.IImplContainer
addElement, addElement, addText, iterChildren
 

Method Detail

addAttribute

public IAttributeImpl addAttribute(java.lang.String aNamespace,
                                   java.lang.String aQName,
                                   java.lang.String aValue,
                                   boolean anIsDefault,
                                   ILocation aLocation)
Adds an attribute.

Parameters:
aNamespace - (required).
aQName - (required).
aValue - (required).
aLocation - (optional).
Returns:
(required).

addAttribute

public IAttributeImpl addAttribute(java.lang.String aNamespace,
                                   java.lang.String aQName,
                                   ITextContentProvider aProvider,
                                   boolean anIsDefault,
                                   ILocation aLocation)

getAttributeImpl

public IAttributeImpl getAttributeImpl(java.lang.String aNamespace,
                                       java.lang.String aName)
Gets an attribute implementation.

Parameters:
aNamespace - (required).
aName - (required).
Returns:
(optional).

iterAttributeImpls

public java.util.Iterator iterAttributeImpls()
Iterates the attribute implementations.

Returns:
(required). An iterator of IAttributeImpl.

getNamespaceForPrefix

public java.lang.String getNamespaceForPrefix(java.lang.String aPrefix)
Gets a namespace for a prefix.

Parameters:
aPrefix - (required).
Returns:
(optional).

getPrefixForNamespace

public java.lang.String getPrefixForNamespace(java.lang.String aNamespace,
                                              boolean aCreate)
Gets a prefix for a namespace.

Parameters:
aNamespace - (required).
aCreate - If the create parameter is true then a new mapping is created for the prefix if there is not already one.
Returns:
(optional).

removeAttribute

public void removeAttribute(java.lang.String aNamespace,
                            java.lang.String aName)
                     throws XmlException
Throws:
XmlException

setDefaultAttrCreator

public void setDefaultAttrCreator(IDefaultAttrCreator aCreator)

setDefaultTextContent

public void setDefaultTextContent(java.lang.String aString)