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

src.java.com.ctc.wstx.ent.NotationDecl Maven / Gradle / Ivy

There is a newer version: 3.2.7
Show newest version
package com.ctc.wstx.ent;

import java.io.IOException;
import java.io.Writer;

import javax.xml.stream.Location;
import javax.xml.stream.XMLStreamException;

import com.ctc.wstx.io.WstxInputSource;
import com.ctc.wstx.evt.WNotationDeclaration;

/**
 * Object that represents notation declarations DTD reader
 * has parsed from DTD subsets.
 */
public class NotationDecl
    extends WNotationDeclaration
{
    final Location mLocation;

    /**
     * Name/id of the notation, used to reference declaration.
     */
    final String mName;

    final String mPublicId;

    final String mSystemId;

    public NotationDecl(Location loc, String name, String pubId, String sysId)
    {
        super(loc);
        mLocation = loc;
        mName = name;
        mPublicId = pubId;
        mSystemId = sysId;
    }

    public Location getLocation() {
        return mLocation;
    }

    public String getName() {
        return mName;
    }

    public String getPublicId() {
        return mPublicId;
    }

    public String getSystemId() {
        return mSystemId;
    }

    /*
    ///////////////////////////////////////////
    // Implementation of abstract base methods
    ///////////////////////////////////////////
     */

    public void writeEnc(Writer w) throws IOException
    {
        w.write("');
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy