@User public abstract class TypedEthereal extends TypedNode
TypedSubstantial
s (elements and pcdata)
make the skeleton of a tdom model instance and their appearance is constrained
by content models.
Between these, the ethereals may float freely.
TypedSubstantial.getPrecedingEthereals()
,
TypedSubstantial.getFollowingEthereals()
, etc.
TypedElement.getEtherealContainer()
.
[x] aComment --stored-as--> x.leading[0] or x.leading[0] or y.preceding[0] aPI --stored-as--> x.leading[0] y.preceding[0] y.preceding[1] [y/] [/x]A "normalizing rewriter" can move all Ethereals into some preferred positions. E.g. all can be stored as "preceding" whenever possible, otherweise as "leading". Such a transformation can be defined on
UntypedVisitor
. FIXME DOITTypedNode.ParseListener<E extends TypedElement<?,?>>
Modifier | Constructor and Description |
---|---|
protected |
TypedEthereal() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dump(ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Write this model component to a SAX output stream.
|
TypedNode<?> |
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, encode, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
public abstract void dump(ContentHandler contentHandler, @Opt LexicalHandler lexicalHandler) throws SAXException
ContentHandler
, but Comments by a
LexicalHandler
, so these two handlers must be supplied
as a tandem for a method defined with this abstract class.contentHandler
- (never null) SAX handler for writing a TypedProcessingInstructionlexicalHandler
- SAX handler for writing a Comment. If null, then the comments
are silently discarded.SAXException
public final TypedNode<?> forAnyExtension()
see also the complete user documentation .