APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.dtd.models

public Class CMLeaf

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

Content model leaf node.

Field Summary

Modifier and TypeField and Description
private 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 com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode:
firstPosgetUserDataisCompactedForUPAlastPossetFollowPossetIsCompactUPAModelsetMaxStatessetUserDatatype

Field Detail

fElementback to summary
private 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 com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.calcFirstPos.

calcLastPosback to summary
protected void calcLastPos(CMStateSet toSet)

Implements abstract com.sun.org.apache.xerces.internal.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 com.sun.org.apache.xerces.internal.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. Satisfying this method's contract implies a non-null result must be returned.