|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.fountain.xelem.excel.AbstractXLElement
public abstract class AbstractXLElement
An abstract implementation of an XLElement.
Field Summary |
---|
Fields inherited from interface nl.fountain.xelem.excel.XLElement |
---|
PREFIX_HTML, PREFIX_O, PREFIX_SS, PREFIX_X, XMLNS, XMLNS_HTML, XMLNS_O, XMLNS_SS, XMLNS_X |
Constructor Summary | |
---|---|
protected |
AbstractXLElement()
|
Method Summary | |
---|---|
void |
addElementComment(String comment)
Add a comment to this XLElement. |
protected Element |
assemble(Document doc,
GIO gio)
Creates an Element with the tag-name, namespace and
prefix suitable for the calling XLElement-implementation. |
protected Attr |
createAttributeNS(Document doc,
String qName,
int i)
Creates an Attr with the given qName
as it's qualified name and the given value of i as it's
value. |
protected Attr |
createAttributeNS(Document doc,
String qName,
String value)
Creates an Attr with the given qName
as it's qualified name and the given value as it's
value. |
protected Element |
createElementNS(Document doc,
String qName)
Creates an Element with the given qName
as it's qualified name. |
protected Element |
createElementNS(Document doc,
String qName,
boolean b)
Creates an Element with the given qName
as it's qualified name and the given value of b appended to
it as a Text , translated as "True" or "False". |
protected Element |
createElementNS(Document doc,
String qName,
int i)
Creates an Element with the given qName
as it's qualified name and the given value of i appended to
it as a Text . |
protected Element |
createElementNS(Document doc,
String qName,
String value)
Creates an Element with the given qName
as it's qualified name and the given value appended to
it as a Text . |
List<String> |
getElementComments()
Gets the list of added comments. |
void |
setAttributes(Attributes attrs)
Does effectively nothing. |
void |
setChildElement(String localName,
String content)
Does effectively nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nl.fountain.xelem.excel.XLElement |
---|
assemble, getNameSpace, getPrefix, getTagName |
Constructor Detail |
---|
protected AbstractXLElement()
Method Detail |
---|
public void addElementComment(String comment)
Workbook.setPrintElementComments(boolean)
-method.
addElementComment
in interface XLElement
comment
- the comment to be added.Workbook.setPrintElementComments(boolean print)
public List<String> getElementComments()
getElementComments
in interface XLElement
public void setAttributes(Attributes attrs)
setAttributes
in interface XLElement
attrs
- the attributes found on the elementpublic void setChildElement(String localName, String content)
setChildElement
in interface XLElement
localName
- the local name of the childcontent
- the content of the childprotected Element assemble(Document doc, GIO gio)
Element
with the tag-name, namespace and
prefix suitable for the calling XLElement-implementation.
If comments were set on
the calling XLElement-subclass and comments should be printed according to
the gio
, these comments are appended to the returned element.
doc
- the enveloping Documentgio
- a global information object
protected Element createElementNS(Document doc, String qName)
Element
with the given qName
as it's qualified name. Namespace and
prefix of the returned element are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping DocumentqName
- the qualified name of the newly created element.
protected Element createElementNS(Document doc, String qName, String value)
Element
with the given qName
as it's qualified name and the given value
appended to
it as a Text
.
Namespace and
prefix of the returned element are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping Document.qName
- the qualified name of the newly created element.value
- the data for the Node.
protected Element createElementNS(Document doc, String qName, int i)
Element
with the given qName
as it's qualified name and the given value of i
appended to
it as a Text
.
Namespace and
prefix of the returned element are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping Document.qName
- the qualified name of the newly created element.i
- the data for the Node.
protected Element createElementNS(Document doc, String qName, boolean b)
Element
with the given qName
as it's qualified name and the given value of b
appended to
it as a Text
, translated as "True" or "False".
Namespace and
prefix of the returned element are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping Document.qName
- the qualified name of the newly created element.b
- the data for the Node.
protected Attr createAttributeNS(Document doc, String qName, int i)
Attr
with the given qName
as it's qualified name and the given value of i
as it's
value.
Namespace and
prefix of the returned attribute are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping Document.qName
- the qualified name of the newly created attribute.i
- the value of the attribute.
protected Attr createAttributeNS(Document doc, String qName, String value)
Attr
with the given qName
as it's qualified name and the given value
as it's
value.
Namespace and
prefix of the returned attribute are the same as those of the
calling AbstractXLElement-subclass.
doc
- the enveloping Document.qName
- the qualified name of the newly created attribute.value
- the value of the attribute.
|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |