org.kohsuke.rngom.digested
Class DAnnotation.Attribute

java.lang.Object
  extended by org.kohsuke.rngom.digested.DAnnotation.Attribute
Enclosing class:
DAnnotation

public static class DAnnotation.Attribute
extends Object

Attribute.


Constructor Summary
DAnnotation.Attribute(String ns, String localName, String prefix)
           
DAnnotation.Attribute(String ns, String localName, String prefix, String value, Locator loc)
           
 
Method Summary
 Locator getLoc()
          Gets the location in the source schema file where this annotation was present.
 String getLocalName()
          Gets the local name of this attribute.
 String getNs()
          Gets the namespace URI of this attribute.
 String getPrefix()
          Gets the prefix of thie attribute.
 String getValue()
          Gets the attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAnnotation.Attribute

public DAnnotation.Attribute(String ns,
                             String localName,
                             String prefix)

DAnnotation.Attribute

public DAnnotation.Attribute(String ns,
                             String localName,
                             String prefix,
                             String value,
                             Locator loc)
Method Detail

getNs

public String getNs()
Gets the namespace URI of this attribute.

Returns:
can be empty (to represent the default namespace), but never null.

getLocalName

public String getLocalName()
Gets the local name of this attribute.

Returns:
always non-null.

getPrefix

public String getPrefix()
Gets the prefix of thie attribute.

Returns:
null if this attribute didn't have a prefix.

getValue

public String getValue()
Gets the attribute value.

Returns:
never null.

getLoc

public Locator getLoc()
Gets the location in the source schema file where this annotation was present.

Returns:
never null.


Copyright © 2011. All Rights Reserved.