All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ctc.wstx.dtd.ModelNode Maven / Gradle / Ivy

Go to download

Woodstox is a high-performance XML processor that implements Stax (JSR-173) and SAX2 APIs

The newest version!
package com.ctc.wstx.dtd;

import java.util.BitSet;
import java.util.List;

/**
 * Abstract base class for classes constructed from {@link ContentSpec}
 * objects, when they get rewritten (when their {@link ContentSpec#rewrite}
 * gets called). These nodes are then used for constructing complete DFA
 * states for validation.
 */
public abstract class ModelNode
{
    /*
    ///////////////////////////////////////////////////
    // Methods needed for DFA construction
    ///////////////////////////////////////////////////
     */

    /**
     * Method that has to create a deep copy of the model, without
     * sharing any of existing Objects.
     */
    public abstract ModelNode cloneModel();

    public abstract boolean isNullable();

    public abstract void indexTokens(List tokens);

    public abstract void addFirstPos(BitSet firstPos);

    public abstract void addLastPos(BitSet firstPos);

    public abstract void calcFollowPos(BitSet[] followPosSets);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy