FileDocCategorySizeDatePackage
CMNode.javaAPI DocJava SE 6 API6946Tue Jun 10 00:22:40 BST 2008com.sun.org.apache.xerces.internal.impl.dtd.models

CMNode

public abstract class CMNode extends Object
A content model node.
xerces.internal
version
$Id: CMNode.java,v 1.2 2005/08/16 22:53:45 jeffsuttor Exp $

Fields Summary
private int
fType
private CMStateSet
fFirstPos
private CMStateSet
fFollowPos
private CMStateSet
fLastPos
private int
fMaxStates
private Object
fUserData
Constructors Summary
public CMNode(int type)

        fType = type;
    
Methods Summary
protected abstract voidcalcFirstPos(com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet toSet)

protected abstract voidcalcLastPos(com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet toSet)

public final com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSetfirstPos()

        if (fFirstPos == null)
        {
            fFirstPos = new CMStateSet(fMaxStates);
            calcFirstPos(fFirstPos);
        }
        return fFirstPos;
    
public java.lang.ObjectgetUserData()
Allows the user to get arbitrary data set on this content model node. This is used by the a{n,m} optimization that runs in constant space.

        return fUserData;
    
public abstract booleanisNullable()

public final com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSetlastPos()

        if (fLastPos == null)
        {
            fLastPos = new CMStateSet(fMaxStates);
            calcLastPos(fLastPos);
        }
        return fLastPos;
    
final voidsetFollowPos(com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet setToAdopt)

        fFollowPos = setToAdopt;
    
public final voidsetMaxStates(int maxStates)

        fMaxStates = maxStates;
    
public voidsetUserData(java.lang.Object userData)
Allows the user to set arbitrary data on this content model node. This is used by the a{n,m} optimization that runs in constant space.

        fUserData = userData;
    
public final inttype()

        return fType;