Package eu.bandm.tools.dtd
Class DTD.__Patterns
java.lang.Object
eu.bandm.tools.dtd.DTD.__Patterns
- Enclosing class:
- DTD
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_Abbrev
(Pattern<? super DTD.Abbrev> p) cast_AttDef
(Pattern<? super DTD.AttDef> p) cast_Attlist
(Pattern<? super DTD.Attlist> p) cast_AttType
(Pattern<? super DTD.AttType> p) cast_AttTypeAbbrev
(Pattern<? super DTD.AttTypeAbbrev> p) cast_AttTypeConstant
(Pattern<? super DTD.AttTypeConstant> p) cast_AttValue
(Pattern<? super DTD.AttValue> p) cast_Choice
(Pattern<? super DTD.Choice> p) cast_Comment
(Pattern<? super DTD.Comment> p) cast_ContentModel
(Pattern<? super DTD.ContentModel> p) cast_ContentModelConstant
(Pattern<? super DTD.ContentModelConstant> p) cast_DefaultDecl
(Pattern<? super DTD.DefaultDecl> p) cast_DefaultDeclConstant
(Pattern<? super DTD.DefaultDeclConstant> p) cast_Element
(Pattern<? super DTD.Element> p) cast_Empty
(Pattern<? super DTD.Empty> p) cast_Entity
(Pattern<? super DTD.Entity> p) cast_EntityContext
(Pattern<? super DTD.EntityContext> p) cast_EntityValue
(Pattern<? super DTD.EntityValue> p) cast_Enumerated
(Pattern<? super DTD.Enumerated> p) cast_MarkupDecl
(Pattern<? super DTD.MarkupDecl> p) cast_Mixed
(Pattern<? super DTD.Mixed> p) cast_NmToken
(Pattern<? super DTD.NmToken> p) cast_Notation
(Pattern<? super DTD.Notation> p) cast_Singleton
(Pattern<? super DTD.Singleton> p) cast_XmlDecl
(Pattern<? super DTD.XmlDecl> p) static Pattern<DTD.Abbrev>
term_Abbrev
(Pattern<? super DTD.CP> superpattern, Pattern<? super String> p_name, Pattern<? super DTD.CP> p_body) term_Any
(Pattern<? super DTD.ContentModelConstant> superpattern) static Pattern<DTD.AttDef>
term_AttDef
(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations, Pattern<? super String> p_name, Pattern<? super DTD.AttType> p_type, Pattern<? super DTD.DefaultDecl> p_value) static Pattern<DTD.Attlist>
term_Attlist
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_element, Pattern<? super CheckedList<DTD.AttDef>> p_atts) static Pattern<DTD.AttType>
term_AttType
(Pattern<Object> superpattern) static Pattern<DTD.AttTypeAbbrev>
term_AttTypeAbbrev
(Pattern<? super DTD.AttType> superpattern, Pattern<? super String> p_label) static Pattern<DTD.AttTypeConstant>
term_AttTypeConstant
(Pattern<? super DTD.AttType> superpattern, Pattern<? super String> p_label) static Pattern<DTD.AttValue>
term_AttValue
(Pattern<? super DTD.DefaultDecl> superpattern, Pattern<? super Boolean> p_fixed, Pattern<? super String> p_value) static Pattern<DTD.Choice>
term_Choice
(Pattern<? super DTD.CP> superpattern, Pattern<? super CheckedList<DTD.CP>> p_alts) static Pattern<DTD.Comment>
term_Comment
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_text) static Pattern<DTD.ContentModel>
term_ContentModel
(Pattern<Object> superpattern) static Pattern<DTD.ContentModelConstant>
term_ContentModelConstant
(Pattern<? super DTD.ContentModel> superpattern, Pattern<? super String> p_label) term_CP
(Pattern<? super DTD.ContentModel> superpattern, Pattern<? super Integer> p_modifier) static Pattern<DTD.DefaultDecl>
term_DefaultDecl
(Pattern<Object> superpattern) static Pattern<DTD.DefaultDeclConstant>
term_DefaultDeclConstant
(Pattern<? super DTD.DefaultDecl> superpattern, Pattern<? super String> p_label) term_Dtd
(Pattern<Object> superpattern, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations, Pattern<? super XMLDocumentIdentifier> p_documentId, Pattern<? super DTD.XmlDecl> p_xmlDecl, Pattern<? super CheckedList<DTD.MarkupDecl>> p_markup, Pattern<? super CheckedMultimap_RD<String, String>> p_entityUsage) static Pattern<DTD.Element>
term_Element
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_name, Pattern<? super DTD.ContentModel> p_content) term_Empty
(Pattern<? super DTD.ContentModelConstant> superpattern) static Pattern<DTD.Entity>
term_Entity
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super Boolean> p_parameter, Pattern<? super String> p_name, Pattern<? super DTD.EntityValue> p_value) static Pattern<DTD.EntityContext>
term_EntityContext
(Pattern<Object> superpattern) static Pattern<DTD.EntityValue>
term_EntityValue
(Pattern<Object> superpattern, Pattern<? super XMLDocumentIdentifier> p_id, Pattern<? super String> p_definition, Pattern<? super String> p_replacement) static Pattern<DTD.Enumerated>
term_Enumerated
(Pattern<? super DTD.AttType> superpattern, Pattern<? super CheckedList<String>> p_tokens) static Pattern<DTD.MarkupDecl>
term_MarkupDecl
(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations) term_Mixed
(Pattern<? super DTD.ContentModel> superpattern, Pattern<? super CheckedList<String>> p_names) static Pattern<DTD.NmToken>
term_NmToken
(Pattern<Object> superpattern, Pattern<? super String> p_text) static Pattern<DTD.Notation>
term_Notation
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_name, Pattern<? super XMLDocumentIdentifier> p_id) term_PI
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_target, Pattern<? super String> p_text) static Pattern<DTD.Singleton>
term_Singleton
(Pattern<? super DTD.CP> superpattern, Pattern<? super String> p_name) static Pattern<DTD.XmlDecl>
term_XmlDecl
(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_version, Pattern<? super String> p_encoding)
-
Constructor Details
-
__Patterns
public __Patterns()
-
-
Method Details
-
cast_Attlist
-
term_Attlist
public static Pattern<DTD.Attlist> term_Attlist(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_element, Pattern<? super CheckedList<DTD.AttDef>> p_atts) -
cast_AttDef
-
term_AttDef
public static Pattern<DTD.AttDef> term_AttDef(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations, Pattern<? super String> p_name, Pattern<? super DTD.AttType> p_type, Pattern<? super DTD.DefaultDecl> p_value) -
cast_Comment
-
term_Comment
public static Pattern<DTD.Comment> term_Comment(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_text) -
cast_Singleton
-
term_Singleton
-
cast_Entity
-
term_Entity
public static Pattern<DTD.Entity> term_Entity(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super Boolean> p_parameter, Pattern<? super String> p_name, Pattern<? super DTD.EntityValue> p_value) -
cast_AttTypeConstant
-
term_AttTypeConstant
public static Pattern<DTD.AttTypeConstant> term_AttTypeConstant(Pattern<? super DTD.AttType> superpattern, Pattern<? super String> p_label) -
cast_Abbrev
-
term_Abbrev
-
cast_Mixed
-
term_Mixed
public static Pattern<DTD.Mixed> term_Mixed(Pattern<? super DTD.ContentModel> superpattern, Pattern<? super CheckedList<String>> p_names) -
cast_NmToken
-
term_NmToken
-
cast_Enumerated
-
term_Enumerated
public static Pattern<DTD.Enumerated> term_Enumerated(Pattern<? super DTD.AttType> superpattern, Pattern<? super CheckedList<String>> p_tokens) -
cast_Empty
-
term_Empty
-
cast_AttTypeAbbrev
-
term_AttTypeAbbrev
public static Pattern<DTD.AttTypeAbbrev> term_AttTypeAbbrev(Pattern<? super DTD.AttType> superpattern, Pattern<? super String> p_label) -
cast_ContentModelConstant
public static Pattern<Object> cast_ContentModelConstant(Pattern<? super DTD.ContentModelConstant> p) -
term_ContentModelConstant
public static Pattern<DTD.ContentModelConstant> term_ContentModelConstant(Pattern<? super DTD.ContentModel> superpattern, Pattern<? super String> p_label) -
cast_CP
-
term_CP
-
cast_PI
-
term_PI
-
cast_Any
-
term_Any
-
cast_MarkupDecl
-
term_MarkupDecl
public static Pattern<DTD.MarkupDecl> term_MarkupDecl(Pattern<Object> superpattern, Pattern<? super Location<XMLDocumentIdentifier>> p_location, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations) -
cast_Notation
-
term_Notation
public static Pattern<DTD.Notation> term_Notation(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_name, Pattern<? super XMLDocumentIdentifier> p_id) -
cast_EntityContext
-
term_EntityContext
-
cast_ContentModel
-
term_ContentModel
-
cast_XmlDecl
-
term_XmlDecl
public static Pattern<DTD.XmlDecl> term_XmlDecl(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_version, Pattern<? super String> p_encoding) -
cast_DefaultDecl
-
term_DefaultDecl
-
cast_DefaultDeclConstant
-
term_DefaultDeclConstant
public static Pattern<DTD.DefaultDeclConstant> term_DefaultDeclConstant(Pattern<? super DTD.DefaultDecl> superpattern, Pattern<? super String> p_label) -
cast_Dtd
-
term_Dtd
public static Pattern<DTD.Dtd> term_Dtd(Pattern<Object> superpattern, Pattern<? super List<Location<XMLDocumentIdentifier>>> p_locations, Pattern<? super XMLDocumentIdentifier> p_documentId, Pattern<? super DTD.XmlDecl> p_xmlDecl, Pattern<? super CheckedList<DTD.MarkupDecl>> p_markup, Pattern<? super CheckedMultimap_RD<String, String>> p_entityUsage) -
cast_Element
-
term_Element
public static Pattern<DTD.Element> term_Element(Pattern<? super DTD.MarkupDecl> superpattern, Pattern<? super String> p_name, Pattern<? super DTD.ContentModel> p_content) -
cast_Choice
-
term_Choice
public static Pattern<DTD.Choice> term_Choice(Pattern<? super DTD.CP> superpattern, Pattern<? super CheckedList<DTD.CP>> p_alts) -
cast_AttValue
-
term_AttValue
public static Pattern<DTD.AttValue> term_AttValue(Pattern<? super DTD.DefaultDecl> superpattern, Pattern<? super Boolean> p_fixed, Pattern<? super String> p_value) -
cast_EntityValue
-
term_EntityValue
public static Pattern<DTD.EntityValue> term_EntityValue(Pattern<Object> superpattern, Pattern<? super XMLDocumentIdentifier> p_id, Pattern<? super String> p_definition, Pattern<? super String> p_replacement) -
cast_AttType
-
term_AttType
-
cast_Seq
-
term_Seq
-