com.ctc.wstx.ent
Class EntityDecl

java.lang.Object
  extended bycom.ctc.wstx.ent.EntityDecl
Direct Known Subclasses:
ExtEntity, IntEntity

public abstract class EntityDecl
extends java.lang.Object

Abstract base class for various entity declarations DTD reader has parsed from DTD subsets.


Constructor Summary
EntityDecl(javax.xml.stream.Location loc, java.lang.String name, java.net.URL ctxt)
           
 
Method Summary
abstract  WstxInputSource expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, javax.xml.stream.XMLReporter rep)
          Method called to create the new input source through which expansion value of the entity can be read.
 java.lang.String getBaseURI()
           
 javax.xml.stream.Location getLocation()
           
 java.lang.String getName()
           
abstract  java.lang.String getNotationName()
           
abstract  java.lang.String getPublicId()
           
abstract  char[] getReplacementChars()
           
abstract  java.lang.String getReplacementText()
           
abstract  int getReplacementText(java.io.Writer w)
           
 int getReplacementTextLength()
           
 java.net.URL getSource()
           
abstract  java.lang.String getSystemId()
           
abstract  boolean isExternal()
           
abstract  boolean isParsed()
           
abstract  void writeEnc(java.io.Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityDecl

public EntityDecl(javax.xml.stream.Location loc,
                  java.lang.String name,
                  java.net.URL ctxt)
Method Detail

getBaseURI

public final java.lang.String getBaseURI()

getName

public final java.lang.String getName()

getLocation

public final javax.xml.stream.Location getLocation()

getNotationName

public abstract java.lang.String getNotationName()

getPublicId

public abstract java.lang.String getPublicId()

getReplacementText

public abstract java.lang.String getReplacementText()

getReplacementText

public abstract int getReplacementText(java.io.Writer w)
                                throws java.io.IOException
Throws:
java.io.IOException

getSystemId

public abstract java.lang.String getSystemId()

writeEnc

public abstract void writeEnc(java.io.Writer w)
                       throws java.io.IOException
Throws:
java.io.IOException

getSource

public final java.net.URL getSource()

getReplacementChars

public abstract char[] getReplacementChars()

getReplacementTextLength

public final int getReplacementTextLength()

isExternal

public abstract boolean isExternal()

isParsed

public abstract boolean isParsed()

expand

public abstract WstxInputSource expand(WstxInputSource parent,
                                       javax.xml.stream.XMLResolver res,
                                       javax.xml.stream.XMLReporter rep)
                                throws java.io.IOException,
                                       javax.xml.stream.XMLStreamException
Method called to create the new input source through which expansion value of the entity can be read.

Throws:
java.io.IOException
javax.xml.stream.XMLStreamException