@User public class Element_reference extends Element implements TypedElement.PCDataContainer, Visitable<Visitor>, Matchable<BaseMatcher>
Element.UnmixedContent
TypedElement.AttributeDecoder, TypedElement.AttributeEncoder, TypedElement.MixedContent<E extends TypedElement<E,X>,X extends TypedExtension>, TypedElement.MixedContentContainer, TypedElement.MixedContentFactory<C extends TypedElement.MixedContent<E,X>,E extends TypedElement<E,X>,X extends TypedExtension,Y extends Exception>, TypedElement.PCDataContainer
TypedNode.ParseListener<E extends TypedElement<?,?>>
TypedContent.DecodingConstructor<C extends TypedContent,X extends TypedExtension,Y extends Exception>, TypedContent.ParsingConstructor<C extends TypedContent,E extends TypedElement<E,X>,X extends TypedExtension,Y extends Exception>
Modifier and Type | Field and Description |
---|---|
CheckedList<Element.UnmixedContent> |
content
List of contents elements, may freely be manipulated, as long as no null
value is tried to enter.
|
static Element.UnmixedContent[] |
EMPTY_CONTENT
Constant value for convenience.
|
static NamespaceName |
name
Name of the Element is in namespace-enabled mode, namely
{}reference . |
static int |
TAG_INDEX |
static String |
TAG_NAME
The name of the element, as it appears literally in the underlying DTD.
|
getDeepPCData, getFlatPCData
Constructor and Description |
---|
Element_reference()
Statically typed w.r.t. the contents; a
TdomContentException can not occur. |
Element_reference(Attributes attrs,
TypedSubstantial<Extension>... content)
Semi-parsing constructor which tries to parse sequences of model content.
|
Element_reference(Element.UnmixedContent... content)
Constructor for an instance with given contents.
|
Element_reference(String cdata)
Convenience constructor which sets the contents to this one string value.
|
Element_reference(TypedSubstantial<Extension>... content)
Semi-parsing constructor which tries to parse sequences of model
elements.
|
Modifier and Type | Method and Description |
---|---|
void |
__dumpElementSnapshot(List<TypedSubstantial<Extension>> list) |
Element_reference |
checkRequiredAttrs() |
void |
encode(EncodingOutputStream out,
Extension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
List<Element.UnmixedContent> |
getContent()
Returns the current content.
|
static TypedDTD.ElementInfo |
getInterfaceInfo()
Give reflexive info object about the generated class.
|
String |
getPCData()
Get the String contents of the
TypedPCData wrapped in this content class. |
int |
getTagIndex() |
void |
host(Visitor visitor)
Send the visitor to this instance.
|
void |
identify(BaseMatcher matcher) |
static Element_reference |
parse(SAXEventStream in,
Extension ext,
TypedNode.ParseListener<Element> listener) |
void |
set()
Set all contents fields to a new value, after checking.
|
void |
setContent(Element.UnmixedContent... content)
Change contents to the given values.
|
getDeepPCData
__getAllAttrs, classifyForException, decodeMixed, decodeOptional, decodePlus, decodePlusList, decodeStar, decodeStarList, encode, encodeMixed, end, ensureSize, extractElement, getAttrsSnapshot, getAttrsSnapshot, getElemsSnapshot, getEtherealContainer, getLocalName, getName, getNamespaceURI, getPCData, getTagName, initAttrs, initAttrs, initAttrsSafe, matchEndElement, matchEndElement, matchStartElement, matchStartElement, parseAbstract, parseAndClose, parseAndClose, parseMixed, parseMixed, parseOptional, parsePlus, parsePlusList, parseStar, parseStarList, semiparseEmpty, semiparseMixed, setResizing, start, w3c_getNamespaceName
dumpFollowingEthereals, dumpPrecedingEthereals, getFollowingEthereals, getPrecedingEthereals, readFollowingEthereals, readPrecedingEthereals
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, encodeOptional, encodePlus, encodePlus, encodeStar, encodeStar, extractEthereals, getLocation, getPCData, setLocation, setLocation, setLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation
public static final int TAG_INDEX
@User public final CheckedList<Element.UnmixedContent> content
@User public static final Element.UnmixedContent[] EMPTY_CONTENT
public static final String TAG_NAME
public static final NamespaceName name
{}reference
.@User public Element_reference(Element.UnmixedContent... content)
TdomContentException
can not occur.IllegalArgumentException
- if any input to contents is null.@User public Element_reference(String cdata)
TdomContentException
can not occur.IllegalArgumentException
- if any input to contents is null.@SafeVarargs @User public Element_reference(@Opt Attributes attrs, TypedSubstantial<Extension>... content) throws TdomContentException
content
- the Element sequence to parse.TdomContentException
- if the sequence in 'contents' does not match
the content model.IllegalArgumentException
- if any input to contents is null.@SafeVarargs @User public Element_reference(TypedSubstantial<Extension>... content) throws TdomContentException
content
- the Element sequence to parse.TdomContentException
- if the sequence in 'contents' does not match
the content model.IllegalArgumentException
- if any input to contents is null.@User public Element_reference()
TdomContentException
can not occur.@User public void set()
TdomContentException
can not
occur.IllegalArgumentException
- if any input to contents is null.public final void encode(EncodingOutputStream out, Extension ext) throws IOException
TypedNode
encode
in class TypedNode<Extension>
IOException
public void __dumpElementSnapshot(List<TypedSubstantial<Extension>> list)
__dumpElementSnapshot
in class TypedElement<Element,Extension>
public final int getTagIndex()
getTagIndex
in class TypedElement<Element,Extension>
public String getPCData()
TypedElement.PCDataContainer
TypedPCData
wrapped in this content class.getPCData
in interface TypedElement.PCDataContainer
TypedPCData
wrapped in this content class.@User public void setContent(Element.UnmixedContent... content)
IllegalArgumentException
- if a null value is found in the
intended contents.@User public List<Element.UnmixedContent> getContent()
getContent
in interface TypedElement.MixedContentContainer
public static Element_reference parse(SAXEventStream in, Extension ext, TypedNode.ParseListener<Element> listener) throws TdomXmlException, TdomContentException, TdomAttributeException
public void host(Visitor visitor)
Visitable
public void identify(BaseMatcher matcher)
identify
in interface Matchable<BaseMatcher>
public final Element_reference checkRequiredAttrs()
@User public static TypedDTD.ElementInfo getInterfaceInfo()
see also the complete user documentation .