org.jbind.xml.base
Interface IAttributes

All Known Implementing Classes:
Attributes

public interface IAttributes


Method Summary
 void addAttribute(IAttribute anAttribute)
           
 IAttribute getAttribute(java.lang.String aNamespace, java.lang.String aName)
           
 java.lang.String getStringValue(java.lang.String anAttributeName)
          Gets the value of the specified (unqualified) attribute.
 java.lang.String getStringValue(java.lang.String aNamespace, java.lang.String aName)
          Gets the value of the specified attribute.
 java.util.Iterator iterAttributes()
          Iterates the attributes.
 void removeAttribute(java.lang.String aNamespace, java.lang.String aName)
           
 

Method Detail

iterAttributes

public java.util.Iterator iterAttributes()
Iterates the attributes.

Returns:
an iterator of IAttribute

getStringValue

public java.lang.String getStringValue(java.lang.String anAttributeName)
Gets the value of the specified (unqualified) attribute. The default value of an attribute is returned if the attribute value is not set explicitly and corresponding schema information is available.

Returns:
The string value of the attribute. (optional)

getStringValue

public java.lang.String getStringValue(java.lang.String aNamespace,
                                       java.lang.String aName)
Gets the value of the specified attribute. The default value of an attribute is returned if the attribute value is not set explicitly and corresponding schema information is available.

Returns:
The string value of the attribute. (optional)

addAttribute

public void addAttribute(IAttribute anAttribute)

removeAttribute

public void removeAttribute(java.lang.String aNamespace,
                            java.lang.String aName)

getAttribute

public IAttribute getAttribute(java.lang.String aNamespace,
                               java.lang.String aName)