|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.cea.ElementDeclaration
public class ElementDeclaration
Encapsulates the declaration of an XML element.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementDeclaration(String elName)
elName
- element name (possibly prefixed)public ElementDeclaration(String elName, String attList)
elName
- element name (possibly prefixed)attList
- attribute list stringMethod Detail |
---|
public void setAttributeNames(String[] attNames)
attNames
- list of attribute names which are permitted
on this elementpublic boolean hasAttribute(String attName)
attName
- attribute name
public String getElementName()
public String getElementAttributes()
public static ElementDeclaration createNamespaceElement(String elName, String ns)
elName
- element name, possibly prefixedns
- default namespace URI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |