Woodstox 6.4.0 - Source Code Files

Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.

You can download them from the "src/main/java" folder.

You can also browse Woodstox Source Code files below:

✍: FYIcenter

com/ctc/wstx/dtd/OptionalModel.java

package com.ctc.wstx.dtd;

import java.util.*;

/**
 * Content specification class that represents an optional specification.
 * Optional specifications are generally a result of '?' arity marker,
 * and are created when {@link ContentSpec#rewrite} is called
 * on a specification with '?' arity modifier.
 */
public class OptionalModel
    extends ModelNode
{
    ModelNode mModel;

    /*
    ///////////////////////////////////////////////////
    // Life-cycle
    ///////////////////////////////////////////////////
     */

    public OptionalModel(ModelNode model) {
        mModel = model;
    }

    /*
    ///////////////////////////////////////////////////
    // Public API
    ///////////////////////////////////////////////////
     */

    /**
     * Method that has to create a deep copy of the model, without
     * sharing any of existing Objects.
     */
    @Override
    public ModelNode cloneModel() {
        return new OptionalModel(mModel.cloneModel());
    }

    @Override
    public boolean isNullable() {
        return true;
    }

    @Override
    public void indexTokens(List<TokenModel> tokens) {
        mModel.indexTokens(tokens);
    }

    @Override
    public void addFirstPos(BitSet pos) {
        mModel.addFirstPos(pos);
    }
    
    @Override
    public void addLastPos(BitSet pos) {
        mModel.addLastPos(pos);
    }

    @Override
    public void calcFollowPos(BitSet[] followPosSets)
    {
        // Let's let sub-model do its stuff
        mModel.calcFollowPos(followPosSets);
    }

    @Override
    public String toString() {
        return mModel + "[?]";
    }
}

com/ctc/wstx/dtd/OptionalModel.java

 

Or download all of them as a single archive file:

File name: woodstox-core-6.4.0-fyi.zip
File size: 552992 bytes
Release date: 2022-10-25
Download 

 

 

woodstox-core-6.4.0.jar - Woodstox Core 6.4.0

What Is Woodstox XML Processing

Download and Review Woodstox wstx-*.jar

⇑⇑ Woodstox for XML Processing

2023-01-29, 14210👍, 0💬