org.jbind.xml.schema.element
Class Attribute

java.lang.Object
  extended byorg.jbind.xml.schema.element.Attribute
All Implemented Interfaces:
IAttribute, IHasLocation
Direct Known Subclasses:
BooleanAttribute, IntAttribute, RefAttribute

public class Attribute
extends java.lang.Object
implements IAttribute


Constructor Summary
Attribute(ACParams anACParams)
           
Attribute(java.lang.String aNamespace, java.lang.String aName, java.lang.String aValue)
           
 
Method Summary
 boolean getBoolean()
          Gets the attribute value interpreted as a boolean.
 int getInt()
          Gets the attribute value interpreted as an integer.
 java.lang.String getLocalName()
           
 ILocation getLocation()
           
 java.lang.String getNamespaceUri()
           
 IRef getRef()
          Gets the attribute value interpreted as a reference.
 java.lang.String getStringValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(ACParams anACParams)

Attribute

public Attribute(java.lang.String aNamespace,
                 java.lang.String aName,
                 java.lang.String aValue)
Method Detail

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface IAttribute

getNamespaceUri

public java.lang.String getNamespaceUri()
Specified by:
getNamespaceUri in interface IAttribute

getStringValue

public java.lang.String getStringValue()
Specified by:
getStringValue in interface IAttribute

getRef

public IRef getRef()
Description copied from interface: IAttribute
Gets the attribute value interpreted as a reference. This method must only be called if it is known that the attribute is a reference.

Specified by:
getRef in interface IAttribute
Returns:
(required).

getBoolean

public boolean getBoolean()
Description copied from interface: IAttribute
Gets the attribute value interpreted as a boolean. This method must only be called if it is known that the attribute is a boolean.

Specified by:
getBoolean in interface IAttribute
Returns:
The boolean value of the attribute.

getInt

public int getInt()
Description copied from interface: IAttribute
Gets the attribute value interpreted as an integer. This method must only be called if it is known that the attribute is an integer.

Specified by:
getInt in interface IAttribute
Returns:
The integer value of the attribute.

getLocation

public ILocation getLocation()
Specified by:
getLocation in interface IHasLocation