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