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)
|
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)