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

public Class XSCMLeaf

extends CMNode
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.xs.models.XSCMRepeatingLeaf
Imports
com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode, .CMStateSet

Content model leaf node.
Author
Neil Graham, IBM

Field Summary

Modifier and TypeField and Description
private Object
fLeaf

This is the leaf: element decl or wildcard decl.

private int
fParticleId

Identify the particle: for UPA checking

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
XSCMLeaf(int type, Object leaf, int id, int position)

Constructs a content model leaf.

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
pack-priv final Object
pack-priv final int
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:
firstPosgetUserDataisCompactedForUPAlastPossetIsCompactUPAModelsetMaxStatessetUserDatatype

Field Detail

fLeafback to summary
private Object fLeaf

This is the leaf: element decl or wildcard decl.

fParticleIdback to summary
private int fParticleId

Identify the particle: for UPA checking

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

XSCMLeafback to summary
public XSCMLeaf(int type, Object leaf, int id, int position)

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.

getLeafback to summary
pack-priv final Object getLeaf()
getParticleIdback to summary
pack-priv final int getParticleId()
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.