public class ElementDeclaration
extends java.lang.Object
Constructor | Description |
---|---|
ElementDeclaration(java.lang.String elName) |
Constructs a declaration with a name but no attributes.
|
ElementDeclaration(java.lang.String elName,
java.lang.String attList) |
Constructs a declaration with a name and attributes.
|
Modifier and Type | Method | Description |
---|---|---|
static ElementDeclaration |
createNamespaceElement(java.lang.String elName,
java.lang.String ns) |
Convenience method to create an element with an attribute list
defining a default namespace for this element and its descendents.
|
java.lang.String |
getElementAttributes() |
Returns the element attribute list.
|
java.lang.String |
getElementName() |
Returns the element name.
|
boolean |
hasAttribute(java.lang.String attName) |
Queries whether a given attribute is known to be permitted on
this element.
|
void |
setAttributeNames(java.lang.String[] attNames) |
Sets a list of permitted attribute names associated with this
declaration.
|
public ElementDeclaration(java.lang.String elName)
elName
- element name (possibly prefixed)public ElementDeclaration(java.lang.String elName, java.lang.String attList)
elName
- element name (possibly prefixed)attList
- attribute list stringpublic void setAttributeNames(java.lang.String[] attNames)
attNames
- list of attribute names which are permitted
on this elementpublic boolean hasAttribute(java.lang.String attName)
attName
- attribute namepublic java.lang.String getElementName()
public java.lang.String getElementAttributes()
public static ElementDeclaration createNamespaceElement(java.lang.String elName, java.lang.String ns)
elName
- element name, possibly prefixedns
- default namespace URICopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.