public class AttlistIndex extends Object
DTD.Dtd a map from element names into
DTD.Attlists. For a certain element name: Iff there are
one ore more DTD.Attlists in the original dtd, then
in the map is exactly one(1) fresh DTD.Attlist object,
containing all attribute declarations.
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
fragmented |
protected Map<String,DTD.Attlist> |
name2attlist |
protected DTD.Dtd |
source |
| Constructor and Description |
|---|
AttlistIndex() |
| Modifier and Type | Method and Description |
|---|---|
DTD.Attlist |
getAttlist(String name)
Return the (one and only, unified)
DTD.Attlist object for a given element name ("tag"). |
Set<String> |
getElementNames()
Returns the names of all elements with attributes
|
DTD.Dtd |
getSource()
Returns the
DTD.Dtd which this object reflects. |
boolean |
isFragmented(String name)
Returns whether the attribute with the given name has been
declared in more than one (>1) "
<!ATTLIST..>" entries. |
void |
update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg,
DTD.Dtd dtd)
This method (or its variant) must
be called exactly once to initialize maps with a certain dtd.
|
void |
update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg,
DTD.Dtd dtd,
Set<String> knownElementNames)
This method (or its variant) must
be called exactly once to initialize maps with a certain dtd.
|
protected Map<String,DTD.Attlist> name2attlist
protected DTD.Dtd source
public void update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg, DTD.Dtd dtd)
IllegalStateException - if called more than once.public void update(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg, DTD.Dtd dtd, Set<String> knownElementNames)
DTD.Attlist is found without corresponding DTD.Element
in knownElementNames.IllegalStateException - if called more than once.public DTD.Attlist getAttlist(String name)
DTD.Attlist object for a given element name ("tag").IllegalStateException - in case update(MessageReceiver,DTD.Dtd)
has not been called before.public boolean isFragmented(String name)
<!ATTLIST..>" entries.public Set<String> getElementNames()
see also the complete user documentation .