org.kohsuke.rngom.digested
Class DAnnotation

java.lang.Object
  extended by org.kohsuke.rngom.digested.DAnnotation

public class DAnnotation
extends Object

Annotation.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Nested Class Summary
static class DAnnotation.Attribute
          Attribute.
 
Constructor Summary
DAnnotation()
           
 
Method Summary
 DAnnotation.Attribute getAttribute(QName n)
           
 DAnnotation.Attribute getAttribute(String nsUri, String localName)
          Gets the attribute of a given name.
 Map<QName,DAnnotation.Attribute> getAttributes()
          Gets the read-only view of all the attributes.
 List<Element> getChildren()
          Gets the read-only view of all the child elements of this annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAnnotation

public DAnnotation()
Method Detail

getAttribute

public DAnnotation.Attribute getAttribute(String nsUri,
                                          String localName)
Gets the attribute of a given name.

Parameters:
nsUri - can be empty but must not be null.
Returns:
null if no such attribute is found.

getAttribute

public DAnnotation.Attribute getAttribute(QName n)

getAttributes

public Map<QName,DAnnotation.Attribute> getAttributes()
Gets the read-only view of all the attributes.

Returns:
can be empty but never null. the returned map is read-only.

getChildren

public List<Element> getChildren()
Gets the read-only view of all the child elements of this annotation.

Returns:
can be empty but never null. the returned list is read-only.


Copyright © 2011. All Rights Reserved.