Top Fields Constructors Methods
org.apache.xerces.stax.events

public final Class NotationDeclarationImpl

extends XMLEventImpl
implements NotationDeclaration
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.NotationDeclaration, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
java.io.IOException, .Writer, javax.xml.stream.Location, .XMLStreamException, javax.xml.stream.events.NotationDeclaration

Author
Lucian Holland
Version
$Id: NotationDeclarationImpl.java 730471 2008-12-31 20:45:32Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
NotationDeclarationImpl(final String name, final String publicId, final String systemId, final Location location)

Method Summary

Modifier and TypeMethod and Description
public String
public String
getPublicId()

Implements javax.xml.stream.events.NotationDeclaration.getPublicId.

The notation's public identifier, or null if none was given.
public String
getSystemId()

Implements javax.xml.stream.events.NotationDeclaration.getSystemId.

The notation's system identifier, or null if none was given.
public void
writeAsEncodedUnicode(Writer
The writer that will output the data
writer
)

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters.
Inherited from org.apache.xerces.stax.events.XMLEventImpl:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementtoString

Field Detail

fNameback to summary
private final String fName
fPublicIdback to summary
private final String fPublicId
fSystemIdback to summary
private final String fSystemId

Constructor Detail

NotationDeclarationImplback to summary
public NotationDeclarationImpl(final String name, final String publicId, final String systemId, final Location location)

Method Detail

getNameback to summary
public String getName()

Implements javax.xml.stream.events.NotationDeclaration.getName.

Doc from javax.xml.stream.events.NotationDeclaration.getName.

The notation name.

Returns:String

the notation name

See Also
javax.xml.stream.events.NotationDeclaration#getName()
getPublicIdback to summary
public String getPublicId()

Implements javax.xml.stream.events.NotationDeclaration.getPublicId.

Doc from javax.xml.stream.events.NotationDeclaration.getPublicId.

The notation's public identifier, or null if none was given.

Returns:String

the public identifier

See Also
javax.xml.stream.events.NotationDeclaration#getPublicId()
getSystemIdback to summary
public String getSystemId()

Implements javax.xml.stream.events.NotationDeclaration.getSystemId.

Doc from javax.xml.stream.events.NotationDeclaration.getSystemId.

The notation's system identifier, or null if none was given.

Returns:String

the system identifier

See Also
javax.xml.stream.events.NotationDeclaration#getSystemId()
writeAsEncodedUnicodeback to summary
public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

Doc from javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. No indentation or whitespace should be outputted. Any user defined event type SHALL have this method called when being written to on an output stream. Built in Event types MUST implement this method, but implementations MAY choose not call these methods for optimizations reasons when writing out built in Events to an output stream. The output generated MUST be equivalent in terms of the infoset expressed.

Parameters
writer:Writer

The writer that will output the data

Exceptions
XMLStreamException:
if there is a fatal error writing the event