@User public class TypedComment extends TypedEthereal
TypedNode.ParseListener<E extends TypedElement<?,?>>
Constructor and Description |
---|
TypedComment()
Comment with empty contents.
|
TypedComment(String text)
Comment with contents.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Write this model component to a SAX output stream.
|
void |
encode(EncodingOutputStream out,
TypedExtension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
String |
getText()
Returns the text contents.
|
void |
setText(String text)
set the text contents.
|
forAnyExtension
asBigDecimal, asBigDecimal, asBigDecimal, asBigDecimal, asBigInteger, asBigInteger, asBigInteger, asBigInteger, asBoolean, asBoolean, asDouble, asDouble, asDouble, asDouble, asFloat, asFloat, asFloat, asFloat, asHexInt, asHexInt, asHexInt, asHexInt, asInt, asInt, asInt, asInt, asLong, asLong, asLong, asLong, asTrimmedString, asTrimmedString, asTrimmedString, asTrimmedString, checkPlus, checkPlus, checkStar, checkStar, checkStrict, encode, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
@User public TypedComment(String text)
IllegalArgumentException
- in case of text==null@User public TypedComment()
@User public void setText(String text)
IllegalArgumentException
- in case of text==nullpublic void encode(EncodingOutputStream out, TypedExtension ext) throws IOException
TypedNode
encode
in class TypedNode
IOException
public void dump(ContentHandler contentHandler, @Opt LexicalHandler lexicalHandler) throws SAXException
TypedEthereal
ContentHandler
, but Comments by a
LexicalHandler
, so these two handlers must be supplied
as a tandem for a method defined with this abstract class.dump
in class TypedEthereal
contentHandler
- (never null) SAX handler for writing a TypedProcessingInstructionlexicalHandler
- SAX handler for writing a Comment. If null, then the comments
are silently discarded.SAXException
see also the complete user documentation .