@User public class Element_entry extends Element implements Visitable<Visitor>, Matchable<BaseMatcher>
key
.
lang
.
Modifier and Type | Class and Description |
---|---|
static class |
Element_entry.Attr_key
Meaning: Key for retrieving the translation
text.
|
static class |
Element_entry.Attr_lang
Meaning: When set: the language for which
the attribute @key is already
a valid translation.
|
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 |
---|---|
static NamespaceName |
name
Name of the Element is in namespace-enabled mode, namely
{http://bandm.eu/doctypes/d2d_gp/basic}entry . |
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_entry()
Statically typed w.r.t. the contents; a
TdomContentException
can not occur. |
Element_entry(Attributes attrs,
Element... content)
Semi-parsing constructor which tries to parse sequences of model content.
|
Element_entry(Element_text... elems_1_text)
Statically typed w.r.t. the contents, as far as possible.
|
Element_entry(Element... content)
Semi-parsing constructor which tries to parse sequences of model elements.
|
Element_entry(TypedAttribute.SafeValues flag) |
Element_entry(TypedAttribute.SafeValues flag,
Element_text... elems_1_text) |
Modifier and Type | Method and Description |
---|---|
void |
__dumpElementSnapshot(List<TypedSubstantial<Extension>> list) |
protected TypedAttribute[] |
__getAllAttrs() |
Element_entry |
checkRequiredAttrs() |
int |
countElems_1_text() |
void |
encode(EncodingOutputStream out,
Extension ext)
Abstract fall-back method which MUST be overridden and always throws an Exception.
|
Element_entry.Attr_key |
getAttr_key()
Meaning: Key for retrieving the translation
text.
|
Element_entry.Attr_lang |
getAttr_lang()
Meaning: When set: the language for which
the attribute @key is already
a valid translation.
|
Element_text |
getElem_1_text(int index) |
Element_text[] |
getElems_1_text() |
static TypedDTD.ElementInfo |
getInterfaceInfo()
Give reflexive info object about the generated class.
|
int |
getTagIndex() |
void |
host(Visitor visitor)
Send the visitor to this instance.
|
void |
identify(BaseMatcher matcher) |
protected void |
initAttrs() |
protected void |
initAttrs(Attributes attrs)
Pick attribute values from the argument and copy them to the attribute
values of this element.
|
protected void |
initAttrsSafe() |
static Element_entry |
parse(SAXEventStream in,
Extension ext,
TypedNode.ParseListener<Element> listener) |
Element_entry.Attr_key |
readAttr_key()
Meaning: Key for retrieving the translation
text.
|
Element_entry.Attr_lang |
readAttr_lang()
Meaning: When set: the language for which
the attribute @key is already
a valid translation.
|
void |
set(Element_text... elems_1_text)
Set all contents fields to a new value, after checking.
|
Element_text |
setElem_1_text(int index,
Element_text newElem_1_text) |
Element_text[] |
setElems_1_text(Element_text... newElems_1_text) |
void |
visitElems_1_text(Visitor visitor)
Sends the visitor to all items currently contained in the 1st appearance
of
Element_text in the content model of
this. |
getDeepPCData
classifyForException, decodeMixed, decodeOptional, decodePlus, decodePlusList, decodeStar, decodeStarList, encode, encodeMixed, end, ensureSize, extractElement, getAttrsSnapshot, getAttrsSnapshot, getElemsSnapshot, getEtherealContainer, getLocalName, getName, getNamespaceURI, getPCData, getTagName, 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
public static final String TAG_NAME
public static final NamespaceName name
{http://bandm.eu/doctypes/d2d_gp/basic}entry
.@User public Element_entry(Element_text... elems_1_text) throws TdomAttributeMissingException, TdomAttributeSyntaxException
TdomContentException
can not occur.
initAttrs()
to set the values for the required
attribute key
, plus optional attributes ad lib.IllegalArgumentException
- if any input to contents is null.TdomAttributeMissingException
- if no value for required attribute
key
is set explicitly.TdomAttributeSyntaxException
public Element_entry(TypedAttribute.SafeValues flag, Element_text... elems_1_text) throws TdomAttributeMissingException
TdomAttributeMissingException
public Element_entry() throws TdomAttributeMissingException, TdomAttributeSyntaxException
TdomContentException
can not occur.
initAttrs()
to set the values for the required
attribute key
, plus optional attributes ad lib. TdomAttributeMissingException
- if no value for required attribute
key
is set explicitly.TdomAttributeSyntaxException
public Element_entry(TypedAttribute.SafeValues flag) throws TdomAttributeMissingException
TdomAttributeMissingException
@SafeVarargs @User public Element_entry(@Opt Attributes attrs, Element... content) throws TdomContentException, TdomAttributeMissingException, TdomAttributeSyntaxException
attrs
- (maybe null) A SAX auxiliary attribute store, from which
values for the attributes defined for this element will be picked.
(Undefined attributes are ignored; a value of null leaves the attribute
default values untouched; all attribute values can be overridden by
overriding initAttrs()
, which is called after this picking.)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.TdomAttributeMissingException
- if there is no value contained in
param attrs
nor set in initAttrs()
for required
attribute key
.TdomAttributeSyntaxException
@SafeVarargs @User public Element_entry(Element... content) throws TdomContentException, TdomAttributeMissingException, TdomAttributeSyntaxException
initAttrs()
to set the values for the required
attribute key
, plus optional attributes ad lib.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.TdomAttributeMissingException
- if no value for required attribute
key
is set explicitly.TdomAttributeSyntaxException
@User public void set(Element_text... elems_1_text)
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>
@User public final Element_entry.Attr_key getAttr_key()
readAttr_key()
should be used.)@User public final Element_entry.Attr_key readAttr_key()
getAttr_key()
must be used.)@User public final Element_entry.Attr_lang getAttr_lang()
readAttr_lang()
should be used.)@User public final Element_entry.Attr_lang readAttr_lang()
getAttr_lang()
must be used.)protected TypedAttribute[] __getAllAttrs()
__getAllAttrs
in class TypedElement<Element,Extension>
@User public Element_text[] getElems_1_text()
Element_text
in the content model of this. This
is directly the storage of the element's contents and all manipulations
affect the element instance.@User public Element_text getElem_1_text(int index)
Element_text
in the content
model of this.ArrayIndexOutOfBoundsException
public int countElems_1_text()
Element_text
in the content model of this.@User public void visitElems_1_text(Visitor visitor)
Element_text
in the content model of
this.@User public Element_text setElem_1_text(int index, Element_text newElem_1_text)
newElem_1_text
- (never null) new value at the given index position
in the 1st appearance of Element_text
in
the content model of this.IllegalArgumentException
- on attempt to set null value.IndexOutOfBoundsException
- if current array is not large enough.@User public Element_text[] setElems_1_text(Element_text... newElems_1_text)
newElems_1_text
- (never null) an array of all values (never
null) in the 1st appearance of Element_text
in the content model of this.IllegalArgumentException
- if the array is null, or a null value
is contained therein .protected void initAttrs(Attributes attrs) throws TdomAttributeSyntaxException
initAttrs()
.initAttrs
in class TypedElement<Element,Extension>
attrs
- collection of (possibly superfluous, undeclared) SAX encoded
attribute values.TdomAttributeSyntaxException
public static Element_entry 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>
protected void initAttrs() throws TdomAttributeSyntaxException
TdomAttributeSyntaxException
protected void initAttrsSafe()
public final Element_entry checkRequiredAttrs() throws TdomAttributeMissingException
TdomAttributeMissingException
@User public static TypedDTD.ElementInfo getInterfaceInfo()
see also the complete user documentation .