Package com.sun.tools.rngom.digested
Class DAnnotation
- java.lang.Object
-
- com.sun.tools.rngom.digested.DAnnotation
-
public class DAnnotation extends Object
Annotation.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDAnnotation.AttributeAttribute.
-
Constructor Summary
Constructors Constructor Description DAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DAnnotation.AttributegetAttribute(String nsUri, String localName)Gets the attribute of a given name.DAnnotation.AttributegetAttribute(QName n)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.
-
-
-
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.
-
-