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

public Class XSCMLeaf

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

Content model leaf node.
Author
Neil Graham, IBM
Version
$Id: XSCMLeaf.java 572112 2007-09-02 19:11:51Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final 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 org.apache.xerces.impl.dtd.models.CMNode:
firstPosisCompactedForUPAlastPossetIsCompactUPAModelsetMaxStatestype

Field Detail

fLeafback to summary
private final 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 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.

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 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.