Top Fields Constructors Methods
com.sun.tools.rngom.binary

public abstract Class BinaryPattern

extends Pattern
Class Inheritance
Known Direct Subclasses
com.sun.tools.rngom.binary.ChoicePattern, com.sun.tools.rngom.binary.GroupPattern, com.sun.tools.rngom.binary.InterleavePattern, com.sun.tools.rngom.binary.AfterPattern
Imports
org.xml.sax.SAXException, java.util.Collection, .List, .ArrayList

Field Summary

Modifier and TypeField and Description
protected final Pattern
protected final Pattern
Inherited from com.sun.tools.rngom.binary.Pattern:
AFTER_HASH_CODEATTRIBUTE_CONTEXTATTRIBUTE_HASH_CODECHOICE_HASH_CODEDATA_CONTENT_TYPEDATA_EXCEPT_CONTEXTDATA_HASH_CODEELEMENT_CONTENT_TYPEELEMENT_CONTEXTELEMENT_HASH_CODEELEMENT_REPEAT_CONTEXTELEMENT_REPEAT_GROUP_CONTEXTELEMENT_REPEAT_INTERLEAVE_CONTEXTEMPTY_CONTENT_TYPEEMPTY_HASH_CODEERROR_HASH_CODEGROUP_HASH_CODEINTERLEAVE_HASH_CODELIST_CONTEXTLIST_HASH_CODEMIXED_CONTENT_TYPENOT_ALLOWED_HASH_CODEONE_OR_MORE_HASH_CODESTART_CONTEXTTEXT_HASH_CODEVALUE_HASH_CODE

Constructor Summary

AccessConstructor and Description
pack-priv
BinaryPattern(boolean nullable, int hc, Pattern p1, Pattern p2)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
public final void
fillChildren(Collection<E> col)

Adds all the children of this pattern to the given collection.

private void
public final Pattern[]
getChildren()

Same as fillChildren(Collection) but returns an array.

public final Pattern
public final Pattern
pack-priv boolean
Inherited from com.sun.tools.rngom.binary.Pattern:
acceptapplycombineHashCodecombineHashCodecontainsChoicecontentTypeGroupableexpandgetContentTypeisNotAllowedisNullablepatternHashCode

Field Detail

p1back to summary
protected final Pattern p1
p2back to summary
protected final Pattern p2

Constructor Detail

BinaryPatternback to summary
pack-priv BinaryPattern(boolean nullable, int hc, Pattern p1, Pattern p2)

Method Detail

checkRecursionback to summary
pack-priv void checkRecursion(int depth) throws SAXException

Overrides com.sun.tools.rngom.binary.Pattern.checkRecursion.

checkRestrictionsback to summary
pack-priv void checkRestrictions(int context, DuplicateAttributeDetector dad, Alphabet alpha) throws RestrictionViolationException

Overrides com.sun.tools.rngom.binary.Pattern.checkRestrictions.

fillChildrenback to summary
public final void fillChildren(Collection<E> col)

Adds all the children of this pattern to the given collection.

For example, if this pattern is (A|B|C), it adds A, B, and C to the collection, even though internally it's represented as (A|(B|C)).

fillChildrenback to summary
private void fillChildren(Class<T> c, Pattern p, Collection<E> col)
getChildrenback to summary
public final Pattern[] getChildren()

Same as fillChildren(Collection) but returns an array.

getOperand1back to summary
public final Pattern getOperand1()
getOperand2back to summary
public final Pattern getOperand2()
samePatternback to summary
pack-priv boolean samePattern(Pattern other)

Implements abstract com.sun.tools.rngom.binary.Pattern.samePattern.