Top Description Fields Constructors Methods
com.ctc.wstx.dtd

public abstract Class ContentSpec

extends Object
Class Inheritance
Known Direct Subclasses
com.ctc.wstx.dtd.SeqContentSpec, com.ctc.wstx.dtd.TokenContentSpec, com.ctc.wstx.dtd.ChoiceContentSpec

Abstract base class for classes that contain parts of a content specification of an element defined in DTD. They are created by FullDTDReader when parsing an DTD subset, and they will be used for constructing actual validators for the element content.

Field Summary

Modifier and TypeField and Description
protected char

Constructor Summary

AccessConstructor and Description
public
ContentSpec(char arity)

Method Summary

Modifier and TypeMethod and Description
public final char
public abstract StructValidator

Returns:

Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.
getSimpleValidator
()

Method called by input element stack to get validator for this content specification, if this specification is simple enough not to need full DFA-based validator.

public boolean
public abstract ModelNode
rewrite()

Method called as the first part of DFA construction, if necessary; will usually create simpler ModelNode instances that will match definition this instance contains.

public final void
setArity(char c)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mArityback to summary
protected char mArity

Constructor Detail

ContentSpecback to summary
public ContentSpec(char arity)

Method Detail

getArityback to summary
public final char getArity()
getSimpleValidatorback to summary
public abstract StructValidator getSimpleValidator()

Method called by input element stack to get validator for this content specification, if this specification is simple enough not to need full DFA-based validator.

Returns:StructValidator

Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.

isLeafback to summary
public boolean isLeaf()
rewriteback to summary
public abstract ModelNode rewrite()

Method called as the first part of DFA construction, if necessary; will usually create simpler ModelNode instances that will match definition this instance contains.

setArityback to summary
public final void setArity(char c)