FileDocCategorySizeDatePackage
CMNode.javaAPI DocJava SE 5 API6371Fri Aug 26 14:55:46 BST 2005com.sun.org.apache.xerces.internal.impl.dtd.models

CMNode

public abstract class CMNode extends Object
A content model node.
version
$Id: CMNode.java,v 1.2 2002/01/29 01:15:10 lehors Exp $

Fields Summary
private int
fType
private CMStateSet
fFirstPos
private CMStateSet
fFollowPos
private CMStateSet
fLastPos
private int
fMaxStates
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 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 final inttype()

        return fType;