StrictElementpublic class StrictElement extends ElementNode The purpose of the StrictElement class is to have a way to
create elements with a list of required attributes but no specific
rendering behavior. |
Fields Summary |
---|
String[] | requiredTraitsThe set of required traits in the per-element partition namespace. | String[] | requiredTraitsNSThe set of required namespaced traits. | String | localNameThis node's local name. | String | namespaceURIThis node's namespace URI |
Constructors Summary |
---|
public StrictElement(DocumentNode doc, String localName, String namespaceURI, String[] requiredTraits, String[] requiredTraitsNS)Constructs a new StrictElement with the requested list of required
attributes.
super(doc);
if (localName == null) {
throw new IllegalArgumentException();
}
this.localName = localName;
this.namespaceURI = namespaceURI;
this.requiredTraitsNS = requiredTraitsNS;
this.requiredTraits = requiredTraits;
|
Methods Summary |
---|
public java.lang.String | getLocalName()
return localName;
| public java.lang.String | getNamespaceURI()
return namespaceURI;
| public java.lang.String[] | getRequiredTraits()
return requiredTraits;
| public java.lang.String[][] | getRequiredTraitsNS()
return requiredTraitsNS;
| public ElementNode | newInstance(DocumentNode doc)Used by DocumentNode to create a new instance from
a prototype StrictElement .
return new StrictElement(doc,
localName,
namespaceURI,
requiredTraits,
requiredTraitsNS);
|
|