FileDocCategorySizeDatePackage
CMNode.javaAPI DocApache Xerces 3.0.15090Fri Sep 14 20:33:56 BST 2007org.apache.xerces.impl.dtd.models

CMNode

public abstract class CMNode extends Object
A content model node.
xerces.internal
version
$Id: CMNode.java 573322 2007-09-06 16:48:47Z peterjm $

Fields Summary
private final int
fType
private CMStateSet
fFirstPos
private CMStateSet
fFollowPos
private CMStateSet
fLastPos
private int
fMaxStates
private boolean
fCompactedForUPA
Constructors Summary
public CMNode(int type)

        fType = type;
    
Methods Summary
protected abstract voidcalcFirstPos(CMStateSet toSet)

protected abstract voidcalcLastPos(CMStateSet toSet)

public final CMStateSetfirstPos()

        if (fFirstPos == null)
        {
            fFirstPos = new CMStateSet(fMaxStates);
            calcFirstPos(fFirstPos);
        }
        return fFirstPos;
    
public booleanisCompactedForUPA()

        return fCompactedForUPA;
    
public abstract booleanisNullable()

public final CMStateSetlastPos()

        if (fLastPos == null)
        {
            fLastPos = new CMStateSet(fMaxStates);
            calcLastPos(fLastPos);
        }
        return fLastPos;
    
final voidsetFollowPos(CMStateSet setToAdopt)

        fFollowPos = setToAdopt;
    
public voidsetIsCompactUPAModel(boolean value)

        fCompactedForUPA = value;
    
public final voidsetMaxStates(int maxStates)

        fMaxStates = maxStates;
    
public final inttype()

        return fType;