Package relaxngcc.automaton
Class Alphabet
- java.lang.Object
-
- relaxngcc.automaton.Alphabet
-
- Direct Known Subclasses:
Alphabet.ForAction,Alphabet.Fork,Alphabet.Markup,Alphabet.Ref,Alphabet.Text
public abstract class Alphabet extends java.lang.ObjectAn alphabet in RelaxNGCC is one of following types: 1. element start 2. element end 3. attribute start 3. attribute end 4. ref 5. typed value (<data>) 6. fixed value (<value>)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlphabet.DataTextstatic classAlphabet.EnterAttributeAlphabet of the type "enter attribute."static classAlphabet.EnterElementAlphabet of the type "enter element."static classAlphabet.ForActionstatic classAlphabet.ForkAlphabet that "forks" a state into a set of sub-automata.static classAlphabet.LeaveAttributeAlphabet of the type "leave attribute."static classAlphabet.LeaveElementAlphabet of the type "leave element."static classAlphabet.MarkupBase class for (enter|leave)(Attribute|Element).static classAlphabet.RefAlphabet of the type "ref."static classAlphabet.Textstatic classAlphabet.ValueText
-
Field Summary
Fields Modifier and Type Field Description org.xml.sax.Locator_locatorSource location where this alphabet came from.static intDATA_TEXTstatic intENTER_ATTRIBUTEstatic intENTER_ELEMENTstatic intFOR_ACTIONstatic intFORKstatic intLEAVE_ATTRIBUTEstatic intLEAVE_ELEMENTstatic intREF_BLOCKstatic intVALUE_TEXT
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Alphabet.DataTextasDataText()Alphabet.EnterAttributeasEnterAttribute()Alphabet.EnterElementasEnterElement()Alphabet.ForActionasForAction()Alphabet.ForkasFork()Alphabet.LeaveAttributeasLeaveAttribute()Alphabet.LeaveElementasLeaveElement()Alphabet.MarkupasMarkup()Alphabet.RefasRef()Alphabet.TextasText()Alphabet.ValueTextasValueText()booleanequals(java.lang.Object o)intgetType()abstract inthashCode()booleanisDataText()booleanisEnterAttribute()booleanisEnterElement()booleanisForAction()booleanisFork()booleanisLeaveAttribute()booleanisLeaveElement()booleanisMarkup()booleanisRef()booleanisText()booleanisValueText()voidprintLocator(java.io.PrintStream out)Prints the locator associated with this.
-
-
-
Field Detail
-
ENTER_ELEMENT
public static final int ENTER_ELEMENT
- See Also:
- Constant Field Values
-
LEAVE_ELEMENT
public static final int LEAVE_ELEMENT
- See Also:
- Constant Field Values
-
ENTER_ATTRIBUTE
public static final int ENTER_ATTRIBUTE
- See Also:
- Constant Field Values
-
LEAVE_ATTRIBUTE
public static final int LEAVE_ATTRIBUTE
- See Also:
- Constant Field Values
-
DATA_TEXT
public static final int DATA_TEXT
- See Also:
- Constant Field Values
-
VALUE_TEXT
public static final int VALUE_TEXT
- See Also:
- Constant Field Values
-
REF_BLOCK
public static final int REF_BLOCK
- See Also:
- Constant Field Values
-
FORK
public static final int FORK
- See Also:
- Constant Field Values
-
FOR_ACTION
public static final int FOR_ACTION
- See Also:
- Constant Field Values
-
_locator
public final org.xml.sax.Locator _locator
Source location where this alphabet came from.
-
-
Method Detail
-
getType
public final int getType()
-
printLocator
public void printLocator(java.io.PrintStream out)
Prints the locator associated with this.
-
asMarkup
public Alphabet.Markup asMarkup()
-
asEnterElement
public Alphabet.EnterElement asEnterElement()
-
asLeaveElement
public Alphabet.LeaveElement asLeaveElement()
-
asEnterAttribute
public Alphabet.EnterAttribute asEnterAttribute()
-
asLeaveAttribute
public Alphabet.LeaveAttribute asLeaveAttribute()
-
asRef
public Alphabet.Ref asRef()
-
asText
public Alphabet.Text asText()
-
asValueText
public Alphabet.ValueText asValueText()
-
asDataText
public Alphabet.DataText asDataText()
-
asFork
public Alphabet.Fork asFork()
-
asForAction
public Alphabet.ForAction asForAction()
-
isMarkup
public final boolean isMarkup()
-
isEnterElement
public final boolean isEnterElement()
-
isLeaveElement
public final boolean isLeaveElement()
-
isEnterAttribute
public final boolean isEnterAttribute()
-
isLeaveAttribute
public final boolean isLeaveAttribute()
-
isRef
public final boolean isRef()
-
isText
public final boolean isText()
-
isValueText
public final boolean isValueText()
-
isDataText
public final boolean isDataText()
-
isFork
public final boolean isFork()
-
isForAction
public final boolean isForAction()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-