Class DAnnotation
- java.lang.Object
-
- org.kohsuke.rngom.rngparser.digested.DAnnotation
-
public class DAnnotation extends java.lang.ObjectAnnotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDAnnotation.AttributeAttribute.
-
Field Summary
Fields Modifier and Type Field Description static DAnnotationEMPTYInstance reserved to be empty.
-
Constructor Summary
Constructors Constructor Description DAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DAnnotation.AttributegetAttribute(java.lang.String nsUri, java.lang.String localName)Gets the attribute of a given name.DAnnotation.AttributegetAttribute(javax.xml.namespace.QName n)java.util.Map<javax.xml.namespace.QName,DAnnotation.Attribute>getAttributes()Gets the read-only view of all the attributes.java.util.List<org.w3c.dom.Element>getChildren()Gets the read-only view of all the child elements of this annotation.
-
-
-
Field Detail
-
EMPTY
public static final DAnnotation EMPTY
Instance reserved to be empty.
-
-
Method Detail
-
getAttribute
public DAnnotation.Attribute getAttribute(java.lang.String nsUri, java.lang.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(javax.xml.namespace.QName n)
-
getAttributes
public java.util.Map<javax.xml.namespace.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 java.util.List<org.w3c.dom.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.
-
-