public class Statistics extends Object
Utilities.canonicalKey_element(String)
,
Utilities.canonicalKey_attribute(String)
and
Utilities.canonicalKey_entity(String,boolean)
.
TunedDTDParser
when the field DTD.Dtd.entityUsage
is filled.
It collects all references to PEs and GEs from
Element content models (PE only), attribute lists(PE),
attribute value contents(GE), PE definition text (PE / GE) and
GE definition text (GE):
ElementIndex
and AttlistIndex
.Modifier and Type | Field and Description |
---|---|
Map<DTD.Element,Set<DTD.AttDef>> |
abstractCandidates
Elements which have (nested) disjunctions of singletons as contents model.
|
Set<DTD.Entity> |
abstractEntityCandidates
Entities used for content models, possibly candidates for abstract elements.
|
Set<DTD.Entity> |
abstractEntityCandidates_decorated
Entities used for content models, possibly candidates for abstract elements
when removing decoration.
|
AttlistIndex |
attlistIndex |
protected DTD.Dtd |
dtd |
Multimap<DTD.Element,String> |
el2att
Elements refer to attributes in their attlist.
|
Multimap<DTD.Element,DTD.Element> |
el2el
Left elements refer to right elements in their contents model.
|
Multimap<String,String> |
element2topLevelEntity
Elements refer directly to entity in their contents model.
|
ElementIndex |
elementIndex |
Set<String> |
elRefsUndef
Element names referred to, but not defined.
|
Set<String> |
entityKeysUsedForContent
Entities contained directly OR IN-directly in content models.
|
Map<String,DTD.Entity> |
geByKey
Map of keys (with prefix) to the general entity.
|
Map<String,DTD.Entity> |
geByName
Map of names (without prefix) to the general entity.
|
Set<String> |
geRefsUndef
GEs referred to, but not defined.
|
boolean |
has_attlist |
boolean |
has_comment |
boolean |
has_element |
boolean |
has_ge |
boolean |
has_insert |
boolean |
has_pe |
boolean |
has_pi |
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
msg |
Map<String,DTD.Entity> |
peByKey
Map of keys (with prefix) to the parameter entity.
|
Map<String,DTD.Entity> |
peByName
Map of names (without prefix) to the parameter entity.
|
Set<String> |
peRefsUndef
PEs referred to, but not defined.
|
Set<String> |
piTargets |
Multimap<String,String> |
transitiveUsage
Transitive closure of reference relations (from ent/el/att/ent) into
entities.
|
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
check_abstract_precondition(DTD.Element el)
Returns whether the contents are an undecorated choice of undecorated
singletons, and thus are a candidate for an "abstract" Tdom class.
|
protected void |
checkUpdated() |
void |
printOrdered(PrintStream p) |
void |
update(DTD.Dtd dtd,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) |
protected DTD.Dtd dtd
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
public ElementIndex elementIndex
public AttlistIndex attlistIndex
public boolean has_pi
public boolean has_comment
public boolean has_insert
public boolean has_element
public boolean has_attlist
public boolean has_pe
public boolean has_ge
public final Multimap<DTD.Element,DTD.Element> el2el
public final Map<DTD.Element,Set<DTD.AttDef>> abstractCandidates
public final Set<DTD.Entity> abstractEntityCandidates
public final Set<DTD.Entity> abstractEntityCandidates_decorated
public final Multimap<DTD.Element,String> el2att
Utilities#canonicalKey_att_name_type(AttDef)
.public final Map<String,DTD.Entity> peByName
public final Map<String,DTD.Entity> peByKey
public final Map<String,DTD.Entity> geByName
public final Map<String,DTD.Entity> geByKey
public final Multimap<String,String> element2topLevelEntity
public Set<String> entityKeysUsedForContent
public final Multimap<String,String> transitiveUsage
protected boolean check_abstract_precondition(DTD.Element el)
protected void checkUpdated()
public void update(DTD.Dtd dtd, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
public void printOrdered(PrintStream p)
see also the complete user documentation .