com.ctc.wstx.dtd
Class ChoiceContentSpec

java.lang.Object
  extended by com.ctc.wstx.dtd.ContentSpec
      extended by com.ctc.wstx.dtd.ChoiceContentSpec

public class ChoiceContentSpec
extends ContentSpec

Content specification that defines content model that has multiple alternative elements; including mixed content model.


Field Summary
 
Fields inherited from class com.ctc.wstx.dtd.ContentSpec
mArity
 
Method Summary
static ChoiceContentSpec constructChoice(boolean nsAware, char arity, java.util.Collection specs)
           
static ChoiceContentSpec constructMixed(boolean nsAware, java.util.Collection specs)
           
 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.
protected static NameKeySet namesetFromSpecs(boolean nsAware, ContentSpec[] specs)
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class com.ctc.wstx.dtd.ContentSpec
getArity, isLeaf, setArity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

constructChoice

public static ChoiceContentSpec constructChoice(boolean nsAware,
                                                char arity,
                                                java.util.Collection specs)

constructMixed

public static ChoiceContentSpec constructMixed(boolean nsAware,
                                               java.util.Collection specs)

getSimpleValidator

public StructValidator getSimpleValidator()
Description copied from class: ContentSpec
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.

Specified by:
getSimpleValidator in class ContentSpec
Returns:
Simple content model validator, if one can be directly constructed, or null to indicate that a DFA needs to be created.

rewrite

public ModelNode rewrite()
Description copied from class: ContentSpec
Method called as the first part of DFA construction, if necessary; will usually create simpler ModelNode instances that will match definition this instance contains.

Specified by:
rewrite in class ContentSpec

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

namesetFromSpecs

protected static NameKeySet namesetFromSpecs(boolean nsAware,
                                             ContentSpec[] specs)