@User public class TypedProcessingInstruction extends TypedEthereal
NmTokenAttribute.checkPITarget(String)
.TypedNode.ParseListener<E extends TypedElement<?,?>>
Constructor and Description |
---|
TypedProcessingInstruction(String target,
String text)
Create an instance with given values.
|
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 |
getTarget()
Returns the target value.
|
String |
getText()
Returns 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 TypedProcessingInstruction(String target, String text)
IllegalArgumentException
- if target is not conformant to syntax rules,
see the class description above.IllegalArgumentException
- if any argument ==null@User public String getTarget()
@User public String getText()
public void encode(EncodingOutputStream out, TypedExtension ext)
TypedNode
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 .