Top Description Fields Constructors Methods
org.apache.xerces.impl.dtd.models

public Class CMLeaf

extends CMNode
Class Inheritance
Imports
org.apache.xerces.impl.dtd.XMLContentSpec, org.apache.xerces.xni.QName

Content model leaf node.
Version
$Id: CMLeaf.java 572057 2007-09-02 18:03:20Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final QName
fElement

This is the element that this leaf represents.

private int
fPosition

Part of the algorithm to convert a regex directly to a DFA numbers each leaf sequentially.

Constructor Summary

AccessConstructor and Description
public
CMLeaf(QName element, int position)

Constructs a content model leaf.

public
CMLeaf(QName element)

Constructs a content model leaf.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
pack-priv final QName
pack-priv final int
public boolean
pack-priv final void
setPosition(int newPosition)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.apache.xerces.impl.dtd.models.CMNode:
firstPosisCompactedForUPAlastPossetFollowPossetIsCompactUPAModelsetMaxStatestype

Field Detail

fElementback to summary
private final QName fElement

This is the element that this leaf represents.

fPositionback to summary
private int fPosition

Part of the algorithm to convert a regex directly to a DFA numbers each leaf sequentially. If its -1, that means its an epsilon node. Zero and greater are non-epsilon positions.

Constructor Detail

CMLeafback to summary
public CMLeaf(QName element, int position)

Constructs a content model leaf.

CMLeafback to summary
public CMLeaf(QName element)

Constructs a content model leaf.

Method Detail

calcFirstPosback to summary
protected void calcFirstPos(CMStateSet toSet)

Implements abstract org.apache.xerces.impl.dtd.models.CMNode.calcFirstPos.

calcLastPosback to summary
protected void calcLastPos(CMStateSet toSet)

Implements abstract org.apache.xerces.impl.dtd.models.CMNode.calcLastPos.

getElementback to summary
pack-priv final QName getElement()
getPositionback to summary
pack-priv final int getPosition()
isNullableback to summary
public boolean isNullable()

Implements abstract org.apache.xerces.impl.dtd.models.CMNode.isNullable.

setPositionback to summary
pack-priv final void setPosition(int newPosition)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.