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/DTDCdataAttr.java

package com.ctc.wstx.dtd;

import org.codehaus.stax2.validation.XMLValidationException;

import com.ctc.wstx.sr.InputProblemReporter;
import com.ctc.wstx.util.PrefixedName;

/**
 * Simple {@link DTDAttribute} sub-class used for plain vanilla CDATA
 * valued attributes. Although base class implements most of the methods,
 * it's better designwise to keep that base class abstract and have
 * separate CDATA type as well.
 */
public final class DTDCdataAttr
    extends DTDAttribute
{
    public DTDCdataAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex,
                        boolean nsAware, boolean xml11)
    {
        super(name, defValue, specIndex, nsAware, xml11);
    }

    @Override
    public DTDAttribute cloneWith(int specIndex) {
        return new DTDCdataAttr(mName, mDefValue, specIndex, mCfgNsAware, mCfgXml11);
    }

    /*
    ///////////////////////////////////////////////////
    // Public API, validation
    ///////////////////////////////////////////////////
     */

    @Override
    public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize)
        throws XMLValidationException
    {
        // Nothing to do for pure CDATA attributes...
        return null;
    }

    @Override
    public void validateDefault(InputProblemReporter rep, boolean normalize)
        throws javax.xml.stream.XMLStreamException
    {
        // Nothing to do for CDATA; all values are fine
    }

    @Override
    public String normalize(DTDValidatorBase v, char[] cbuf, int start, int end)
    {
        // Nothing to do for pure CDATA attributes...
        return null;
    }

    @Override
    public void normalizeDefault()
    {
        // Nothing to do for pure CDATA attributes...
    }
}

com/ctc/wstx/dtd/DTDCdataAttr.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, 9695👍, 0💬