Package | Description |
---|---|
com.ctc.wstx.dtd |
Package that contains Woodstox classes that implement DTD handling.
|
com.ctc.wstx.msv |
Package that contains Multi-Schema Validator (MSV) based validator
implementations for schema languages other than DTD.
|
com.ctc.wstx.util |
Contains utility classes that are not directly Woodstox specific, but are
for now only used by Woodstox.
|
Modifier and Type | Field and Description |
---|---|
(package private) PrefixedName |
FullDTDReader.mAccessKey |
(package private) PrefixedName |
TokenContentSpec.mElemName |
(package private) PrefixedName |
TokenContentSpec.Validator.mElemName |
(package private) PrefixedName |
TokenModel.mElemName |
protected PrefixedName |
DTDAttribute.mName |
(package private) PrefixedName |
DTDElement.mName |
(package private) PrefixedName |
LargePrefixedNameSet.Bucket.mName |
(package private) PrefixedName[] |
LargePrefixedNameSet.mNames
Primary hash area in which NameKeys are added.
|
(package private) PrefixedName[] |
SeqContentSpec.Validator.mNames |
protected PrefixedName |
DTDValidatorBase.mTmpKey |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.HashMap<PrefixedName,DTDAttribute> |
DTDElement.mAttrMap |
protected java.util.HashMap<PrefixedName,DTDAttribute> |
DTDValidatorBase.mCurrAttrDefs
Attribute definitions for attributes the current element may have
|
(package private) java.util.HashMap<PrefixedName,DTDElement> |
DTDSubsetImpl.mElements |
(package private) java.util.LinkedHashMap<PrefixedName,DTDElement> |
FullDTDReader.mElements
Contains definition of elements and matching content specifications.
|
(package private) java.util.Map<PrefixedName,DTDElement> |
DTDValidatorBase.mElemSpecs
Map that contains element specifications from DTD; null if no
DOCTYPE declaration found.
|
(package private) java.util.HashMap<PrefixedName,DFAState> |
DFAState.mNext |
(package private) java.util.HashMap<PrefixedName,PrefixedName> |
FullDTDReader.mSharedNames
Map used to shared PrefixedName instances, to reduce memory usage
of (qualified) element and attribute names
|
(package private) java.util.HashMap<PrefixedName,PrefixedName> |
FullDTDReader.mSharedNames
Map used to shared PrefixedName instances, to reduce memory usage
of (qualified) element and attribute names
|
protected static java.util.HashMap<PrefixedName,DTDAttribute> |
DTDValidatorBase.NO_ATTRS |
Modifier and Type | Method and Description |
---|---|
private PrefixedName |
FullDTDReader.findSharedName(java.lang.String prefix,
java.lang.String localName)
Method used to 'intern()' qualified names; main benefit is reduced
memory usage as the name objects are shared.
|
(package private) PrefixedName |
DTDValidatorBase.getElemName()
Name of current element on the top of the element stack.
|
PrefixedName |
DTDAttribute.getName() |
PrefixedName |
DTDElement.getName() |
PrefixedName |
LargePrefixedNameSet.Bucket.getName() |
PrefixedName |
TokenContentSpec.getName() |
PrefixedName |
TokenModel.getName() |
private PrefixedName |
FullDTDReader.readDTDQName(char firstChar)
Method that will read an element or attribute name from DTD; depending
on namespace mode, it can have prefix as well.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<PrefixedName,DTDAttribute> |
DTDElement.getAttributes() |
abstract java.util.HashMap<PrefixedName,DTDElement> |
DTDSubset.getElementMap() |
java.util.HashMap<PrefixedName,DTDElement> |
DTDSubsetImpl.getElementMap() |
private java.util.LinkedHashMap<PrefixedName,DTDElement> |
FullDTDReader.getElementMap() |
java.util.TreeSet<PrefixedName> |
DFAState.getNextNames() |
Modifier and Type | Method and Description |
---|---|
DTDAttribute |
DTDElement.addAttribute(InputProblemReporter rep,
PrefixedName attrName,
int valueType,
DefaultAttrValue defValue,
WordResolver enumValues,
boolean fullyValidate)
Method called by DTD parser when it has read information about
an attribute that belong to this element
|
DTDAttribute |
DTDElement.addNsDefault(InputProblemReporter rep,
PrefixedName attrName,
int valueType,
DefaultAttrValue defValue,
boolean fullyValidate)
Method called to add a definition of a namespace-declaration
pseudo-attribute with a default value.
|
private java.lang.String |
FullDTDReader.attrDesc(java.lang.Object elem,
PrefixedName attrName) |
void |
DFAState.calcNext(PrefixedName[] tokenNames,
java.util.BitSet[] tokenFPs,
java.util.List<DFAState> stateList,
java.util.Map<java.util.BitSet,DFAState> stateMap) |
(package private) static java.lang.String |
SeqContentSpec.Validator.concatNames(PrefixedName[] names) |
static TokenContentSpec |
TokenContentSpec.construct(char arity,
PrefixedName elemName) |
boolean |
LargePrefixedNameSet.contains(PrefixedName name) |
abstract boolean |
PrefixedNameSet.contains(PrefixedName name) |
boolean |
SmallPrefixedNameSet.contains(PrefixedName name) |
static DTDElement |
DTDElement.createDefined(ReaderConfig cfg,
javax.xml.stream.Location loc,
PrefixedName name,
StructValidator val,
int allowedContent)
Method called to create an actual element definition, matching
an ELEMENT directive in a DTD subset.
|
static DTDElement |
DTDElement.createPlaceholder(ReaderConfig cfg,
javax.xml.stream.Location loc,
PrefixedName name)
Method called to create a "placeholder" element definition, needed to
contain attribute definitions.
|
DFAState |
DFAState.findNext(PrefixedName elemName) |
private void |
FullDTDReader.parseAttrDefaultValue(DefaultAttrValue defVal,
char quoteChar,
PrefixedName attrName,
javax.xml.stream.Location loc,
boolean gotFixed)
This method is similar to
FullDTDReader.parseEntityValue(java.lang.String, javax.xml.stream.Location, char) in some ways,
but has some notable differences, due to the way XML specs define
differences. |
private WordResolver |
FullDTDReader.parseEnumerated(DTDElement elem,
PrefixedName attrName,
boolean isNotation)
Parsing method that reads a list of one or more space-separated
tokens (nmtoken or name, depending on 'isNotation' argument)
|
private ContentSpec |
FullDTDReader.readContentSpec(PrefixedName elemName,
boolean mainLevel,
boolean construct) |
private StructValidator |
FullDTDReader.readMixedSpec(PrefixedName elemName,
boolean construct)
Method called to parse what seems like a mixed content specification.
|
private java.lang.String |
FullDTDReader.readNotationEntry(char c,
PrefixedName attrName,
javax.xml.stream.Location refLoc)
Method called to read a notation reference entry; done both for
attributes of type NOTATION, and for external unparsed entities
that refer to a notation.
|
private void |
FullDTDReader.throwDTDAttrError(java.lang.String msg,
DTDElement elem,
PrefixedName attrName) |
java.lang.String |
ChoiceContentSpec.Validator.tryToValidate(PrefixedName elemName) |
java.lang.String |
DFAValidator.tryToValidate(PrefixedName elemName) |
java.lang.String |
EmptyValidator.tryToValidate(PrefixedName elemName) |
java.lang.String |
SeqContentSpec.Validator.tryToValidate(PrefixedName elemName) |
abstract java.lang.String |
StructValidator.tryToValidate(PrefixedName elemName)
Method called when a new (start) element is encountered within the
scope of parent element this validator monitors.
|
java.lang.String |
TokenContentSpec.Validator.tryToValidate(PrefixedName elemName) |
Modifier and Type | Method and Description |
---|---|
private void |
DTDSubsetImpl.combineElements(InputProblemReporter rep,
java.util.HashMap<PrefixedName,DTDElement> intElems,
java.util.HashMap<PrefixedName,DTDElement> extElems)
Method that will try to merge in elements defined in the external
subset, into internal subset; it will also check for redeclarations
when doing this, as it's invalid to redeclare elements.
|
private void |
DTDSubsetImpl.combineElements(InputProblemReporter rep,
java.util.HashMap<PrefixedName,DTDElement> intElems,
java.util.HashMap<PrefixedName,DTDElement> extElems)
Method that will try to merge in elements defined in the external
subset, into internal subset; it will also check for redeclarations
when doing this, as it's invalid to redeclare elements.
|
static DTDSubsetImpl |
DTDSubsetImpl.constructInstance(boolean cachable,
java.util.HashMap<java.lang.String,EntityDecl> genEnt,
java.util.Set<java.lang.String> refdGEs,
java.util.HashMap<java.lang.String,EntityDecl> paramEnt,
java.util.Set<java.lang.String> refdPEs,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations,
java.util.HashMap<PrefixedName,DTDElement> elements,
boolean fullyValidating) |
private DTDAttribute |
DTDElement.doAddAttribute(java.util.Map<PrefixedName,DTDAttribute> attrMap,
InputProblemReporter rep,
DTDAttribute attr,
java.util.List<DTDAttribute> specList,
boolean fullyValidate) |
Constructor and Description |
---|
Bucket(PrefixedName name,
LargePrefixedNameSet.Bucket next) |
DTDAttribute(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11) |
DTDCdataAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11) |
DTDElement(javax.xml.stream.Location loc,
PrefixedName name,
StructValidator val,
int allowedContent,
boolean nsAware,
boolean xml11) |
DTDEntitiesAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDEntityAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDEnumAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11,
WordResolver enumValues) |
DTDIdAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDIdRefAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDIdRefsAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDNmTokenAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDNmTokensAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11)
Main constructor.
|
DTDNotationAttr(PrefixedName name,
DefaultAttrValue defValue,
int specIndex,
boolean nsAware,
boolean xml11,
WordResolver enumValues) |
LargePrefixedNameSet(boolean nsAware,
PrefixedName[] names) |
SmallPrefixedNameSet(boolean nsAware,
PrefixedName[] names) |
TokenContentSpec(char arity,
PrefixedName elemName) |
TokenModel(PrefixedName elemName) |
Validator(char arity,
PrefixedName elemName) |
Validator(char arity,
PrefixedName[] names) |
Constructor and Description |
---|
DTDSubsetImpl(boolean cachable,
java.util.HashMap<java.lang.String,EntityDecl> genEnt,
java.util.Set<java.lang.String> refdGEs,
java.util.HashMap<java.lang.String,EntityDecl> paramEnt,
java.util.Set<java.lang.String> peRefs,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations,
java.util.HashMap<PrefixedName,DTDElement> elements,
boolean fullyValidating) |
DTDTypingNonValidator(DTDSubset schema,
org.codehaus.stax2.validation.ValidationContext ctxt,
boolean hasNsDefaults,
java.util.Map<PrefixedName,DTDElement> elemSpecs,
java.util.Map<java.lang.String,EntityDecl> genEntities) |
DTDValidator(DTDSubset schema,
org.codehaus.stax2.validation.ValidationContext ctxt,
boolean hasNsDefaults,
java.util.Map<PrefixedName,DTDElement> elemSpecs,
java.util.Map<java.lang.String,EntityDecl> genEntities) |
DTDValidatorBase(DTDSubset schema,
org.codehaus.stax2.validation.ValidationContext ctxt,
boolean hasNsDefaults,
java.util.Map<PrefixedName,DTDElement> elemSpecs,
java.util.Map<java.lang.String,EntityDecl> genEntities) |
Modifier and Type | Method and Description |
---|---|
(package private) PrefixedName |
GenericMsvValidator.getAttrPName() |
(package private) PrefixedName |
GenericMsvValidator.getElementPName() |
Modifier and Type | Field and Description |
---|---|
private PrefixedName |
ElementId.mAttrName
Name of the attribute that contains this id value (often "id",
but need not be)
|
private PrefixedName |
ElementId.mElemName
Name of element for which this id refers.
|
Modifier and Type | Method and Description |
---|---|
PrefixedName |
ElementId.getAttrName() |
PrefixedName |
ElementId.getElemName() |
PrefixedName |
PrefixedName.reset(java.lang.String prefix,
java.lang.String localName) |
static PrefixedName |
PrefixedName.valueOf(javax.xml.namespace.QName n) |
Modifier and Type | Method and Description |
---|---|
ElementId |
ElementIdMap.addDefined(char[] buffer,
int start,
int len,
int hash,
javax.xml.stream.Location loc,
PrefixedName elemName,
PrefixedName attrName)
Method called when an id definition is encountered.
|
ElementId |
ElementIdMap.addDefined(java.lang.String idStr,
javax.xml.stream.Location loc,
PrefixedName elemName,
PrefixedName attrName) |
ElementId |
ElementIdMap.addReferenced(char[] buffer,
int start,
int len,
int hash,
javax.xml.stream.Location loc,
PrefixedName elemName,
PrefixedName attrName)
Method called when a reference to id is encountered.
|
ElementId |
ElementIdMap.addReferenced(java.lang.String idStr,
javax.xml.stream.Location loc,
PrefixedName elemName,
PrefixedName attrName) |
int |
PrefixedName.compareTo(PrefixedName other) |
Constructor and Description |
---|
ElementId(java.lang.String id,
javax.xml.stream.Location loc,
boolean defined,
PrefixedName elemName,
PrefixedName attrName) |