org.jbind.xml.schema.element
Class Attributes

java.lang.Object
  extended byorg.jbind.xml.schema.element.Attributes
All Implemented Interfaces:
IAttributes

public class Attributes
extends java.lang.Object
implements IAttributes


Constructor Summary
Attributes()
           
 
Method Summary
 void addAttribute(IAttribute anAttribute)
           
 IAttribute getAttribute(java.lang.String aNamespace, java.lang.String aName)
           
 java.lang.String getStringValue(java.lang.String aName)
          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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attributes

public Attributes()
Method Detail

iterAttributes

public java.util.Iterator iterAttributes()
Description copied from interface: IAttributes
Iterates the attributes.

Specified by:
iterAttributes in interface IAttributes
Returns:
an iterator of IAttribute

getStringValue

public java.lang.String getStringValue(java.lang.String aName)
Description copied from interface: IAttributes
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.

Specified by:
getStringValue in interface IAttributes
Returns:
The string value of the attribute. (optional)

getStringValue

public java.lang.String getStringValue(java.lang.String aNamespace,
                                       java.lang.String aName)
Description copied from interface: IAttributes
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.

Specified by:
getStringValue in interface IAttributes
Returns:
The string value of the attribute. (optional)

addAttribute

public void addAttribute(IAttribute anAttribute)
Specified by:
addAttribute in interface IAttributes

removeAttribute

public void removeAttribute(java.lang.String aNamespace,
                            java.lang.String aName)
Specified by:
removeAttribute in interface IAttributes

getAttribute

public IAttribute getAttribute(java.lang.String aNamespace,
                               java.lang.String aName)
Specified by:
getAttribute in interface IAttributes