Package eu.bandm.tools.dtm
Class DTM.__Patterns
java.lang.Object
eu.bandm.tools.dtm.DTM.__Patterns
- Enclosing class:
- DTM
Ancillary class providing Paisley compound patterns.
The methods with names
cast_[T]
simply call ReflectionPatterns.forInstancesOf(java.lang.Class, eu.bandm.tools.paisley.Pattern)
. Thus they combine a pattern which matches
some super type with a type check.The methods with names
term_[T]
get as parameters one pattern for the super class and one for
each own field and combine them to a pattern for the class T.
(The 'term(..)' methods do intentionally not include the code of the 'cast(..)' methods, because the latter is not needed when the former is used as the pattern for the superclass.)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncast_Attribute
(Pattern<? super DTM.Attribute> p) cast_AttributeDefault
(Pattern<? super DTM.AttributeDefault> p) cast_AttributeType
(Pattern<? super DTM.AttributeType> p) cast_AttributeValue
(Pattern<? super DTM.AttributeValue> p) cast_CData
(Pattern<? super DTM.CData> p) cast_Choice
(Pattern<? super DTM.Choice> p) cast_Content
(Pattern<? super DTM.Content> p) cast_Element
(Pattern<? super DTM.Element> p) cast_ElementRef
(Pattern<? super DTM.ElementRef> p) cast_Empty
(Pattern<? super DTM.Empty> p) cast_Entities
(Pattern<? super DTM.Entities> p) cast_Entity
(Pattern<? super DTM.Entity> p) cast_Enumerated
(Pattern<? super DTM.Enumerated> p) cast_IdRef
(Pattern<? super DTM.IdRef> p) cast_IdRefs
(Pattern<? super DTM.IdRefs> p) cast_Implied
(Pattern<? super DTM.Implied> p) cast_Mixed
(Pattern<? super DTM.Mixed> p) cast_Named
(Pattern<? super DTM.Named> p) cast_NMToken
(Pattern<? super DTM.NMToken> p) cast_NMTokens
(Pattern<? super DTM.NMTokens> p) cast_Notation
(Pattern<? super DTM.Notation> p) cast_Required
(Pattern<? super DTM.Required> p) cast_Sequence
(Pattern<? super DTM.Sequence> p) cast_Singleton
(Pattern<? super DTM.Singleton> p) term_Any
(Pattern<? super DTM.Content> superpattern) static Pattern<DTM.Attribute>
term_Attribute
(Pattern<? super DTM.Named> superpattern, Pattern<? super DTM.AttributeType> p_type, Pattern<? super DTM.AttributeDefault> p_def) static Pattern<DTM.AttributeDefault>
term_AttributeDefault
(Pattern<Object> superpattern) static Pattern<DTM.AttributeType>
term_AttributeType
(Pattern<Object> superpattern) static Pattern<DTM.AttributeValue>
term_AttributeValue
(Pattern<? super DTM.AttributeDefault> superpattern, Pattern<? super Boolean> p_fixed, Pattern<? super String> p_value) term_CData
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.Choice>
term_Choice
(Pattern<? super DTM.CP> superpattern, Pattern<? super CheckedList<DTM.CP>> p_alts) static Pattern<DTM.Content>
term_Content
(Pattern<Object> superpattern) term_CP
(Pattern<? super DTM.Content> superpattern, Pattern<? super EBNFModifier> p_modifier) term_Dtd
(Pattern<Object> superpattern, Pattern<? super CheckedMap_RD<NamespaceName, DTM.Element>> p_elems, Pattern<? super CheckedMap_RD<String, CheckedList<DTM.ProcessingInstruction>>> p_instructions) static Pattern<DTM.Element>
term_Element
(Pattern<? super DTM.Named> superpattern, Pattern<? super CheckedMap_RD<NamespaceName, DTM.Attribute>> p_attrs, Pattern<? super DTM.Content> p_content) static Pattern<DTM.ElementRef>
term_ElementRef
(Pattern<Object> superpattern, Pattern<? super DTM.Element> p_target) term_Empty
(Pattern<? super DTM.Content> superpattern) static Pattern<DTM.Entities>
term_Entities
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.Entity>
term_Entity
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.Enumerated>
term_Enumerated
(Pattern<? super DTM.AttributeType> superpattern, Pattern<? super CheckedSet<String>> p_values) term_Id
(Pattern<? super DTM.AttributeType> superpattern) term_IdRef
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.IdRefs>
term_IdRefs
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.Implied>
term_Implied
(Pattern<? super DTM.AttributeDefault> superpattern) term_Mixed
(Pattern<? super DTM.Content> superpattern, Pattern<? super CheckedSet<DTM.ElementRef>> p_elems) term_Named
(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super NamespaceName> p_name) static Pattern<DTM.NMToken>
term_NMToken
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.NMTokens>
term_NMTokens
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.Notation>
term_Notation
(Pattern<? super DTM.AttributeType> superpattern) static Pattern<DTM.ProcessingInstruction>
term_ProcessingInstruction
(Pattern<Object> superpattern, Pattern<? super String> p_target, Pattern<? super String> p_body) static Pattern<DTM.Required>
term_Required
(Pattern<? super DTM.AttributeDefault> superpattern) static Pattern<DTM.Sequence>
term_Sequence
(Pattern<? super DTM.CP> superpattern, Pattern<? super CheckedList<DTM.CP>> p_elems) static Pattern<DTM.Singleton>
term_Singleton
(Pattern<? super DTM.CP> superpattern, Pattern<? super DTM.ElementRef> p_ref)
-
Constructor Details
-
__Patterns
public __Patterns()
-
-
Method Details
-
cast_Sequence
-
term_Sequence
public static Pattern<DTM.Sequence> term_Sequence(Pattern<? super DTM.CP> superpattern, Pattern<? super CheckedList<DTM.CP>> p_elems) -
cast_Element
-
term_Element
public static Pattern<DTM.Element> term_Element(Pattern<? super DTM.Named> superpattern, Pattern<? super CheckedMap_RD<NamespaceName, DTM.Attribute>> p_attrs, Pattern<? super DTM.Content> p_content) -
cast_Entity
-
term_Entity
-
cast_Content
-
term_Content
-
cast_Singleton
-
term_Singleton
public static Pattern<DTM.Singleton> term_Singleton(Pattern<? super DTM.CP> superpattern, Pattern<? super DTM.ElementRef> p_ref) -
cast_Enumerated
-
term_Enumerated
public static Pattern<DTM.Enumerated> term_Enumerated(Pattern<? super DTM.AttributeType> superpattern, Pattern<? super CheckedSet<String>> p_values) -
cast_ProcessingInstruction
public static Pattern<Object> cast_ProcessingInstruction(Pattern<? super DTM.ProcessingInstruction> p) -
term_ProcessingInstruction
-
cast_IdRef
-
term_IdRef
-
cast_AttributeValue
-
term_AttributeValue
public static Pattern<DTM.AttributeValue> term_AttributeValue(Pattern<? super DTM.AttributeDefault> superpattern, Pattern<? super Boolean> p_fixed, Pattern<? super String> p_value) -
cast_AttributeDefault
-
term_AttributeDefault
-
cast_Required
-
term_Required
public static Pattern<DTM.Required> term_Required(Pattern<? super DTM.AttributeDefault> superpattern) -
cast_ElementRef
-
term_ElementRef
public static Pattern<DTM.ElementRef> term_ElementRef(Pattern<Object> superpattern, Pattern<? super DTM.Element> p_target) -
cast_Id
-
term_Id
-
cast_IdRefs
-
term_IdRefs
-
cast_Implied
-
term_Implied
-
cast_Named
-
term_Named
public static Pattern<DTM.Named> term_Named(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super NamespaceName> p_name) -
cast_Mixed
-
term_Mixed
public static Pattern<DTM.Mixed> term_Mixed(Pattern<? super DTM.Content> superpattern, Pattern<? super CheckedSet<DTM.ElementRef>> p_elems) -
cast_CP
-
term_CP
public static Pattern<DTM.CP> term_CP(Pattern<? super DTM.Content> superpattern, Pattern<? super EBNFModifier> p_modifier) -
cast_NMTokens
-
term_NMTokens
-
cast_Any
-
term_Any
-
cast_AttributeType
-
term_AttributeType
-
cast_Dtd
-
term_Dtd
public static Pattern<DTM.Dtd> term_Dtd(Pattern<Object> superpattern, Pattern<? super CheckedMap_RD<NamespaceName, DTM.Element>> p_elems, Pattern<? super CheckedMap_RD<String, CheckedList<DTM.ProcessingInstruction>>> p_instructions) -
cast_CData
-
term_CData
-
cast_Attribute
-
term_Attribute
public static Pattern<DTM.Attribute> term_Attribute(Pattern<? super DTM.Named> superpattern, Pattern<? super DTM.AttributeType> p_type, Pattern<? super DTM.AttributeDefault> p_def) -
cast_Notation
-
term_Notation
-
cast_NMToken
-
term_NMToken
-
cast_Empty
-
term_Empty
-
cast_Choice
-
term_Choice
public static Pattern<DTM.Choice> term_Choice(Pattern<? super DTM.CP> superpattern, Pattern<? super CheckedList<DTM.CP>> p_alts) -
cast_Entities
-
term_Entities
-