|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XLElement
Represents an element in SpreadsheetML.
XLElements are unaware of their parent. This makes it possible to move and duplicate them to other, allthough appropriate, XLElements of the Workbook. Even to other Workbooks.
An XLElement is capable of assembling it's state into an
Element
and attach this Element to a parent-element in a
Document
.
Field Summary | |
---|---|
static String |
PREFIX_HTML
HTML-namespace prefix: "html". |
static String |
PREFIX_O
The Office namespace prefix: "o". |
static String |
PREFIX_SS
The SpreadsheetML namespace prefix: "ss". |
static String |
PREFIX_X
The Excel namespace prefix: "x". |
static String |
XMLNS
The default SpreadsheetML namespace: "urn:schemas-microsoft-com:office:spreadsheet" |
static String |
XMLNS_HTML
HTML-namespace. |
static String |
XMLNS_O
The Office namespace. |
static String |
XMLNS_SS
The SpreadsheetML namespace. |
static String |
XMLNS_X
The Excel namespace. |
Method Summary | |
---|---|
void |
addElementComment(String comment)
Adds a comment to this XLElement. |
Element |
assemble(Element parent,
GIO gio)
Assembles the state of this XLElement and all of it's children into an Element . |
List |
getElementComments()
Gets a List of added comments. |
String |
getNameSpace()
Gets the namespace of this XLElement. |
String |
getPrefix()
Gets the prefix of this XLElement. |
String |
getTagName()
Gets the tagname (localName) of this XLElement. |
void |
setAttributes(Attributes attrs)
Called by a builder during a read by ExcelReader . |
void |
setChildElement(String localName,
String content)
Called by a builder during a read by ExcelReader . |
Field Detail |
---|
static final String XMLNS
static final String XMLNS_O
static final String XMLNS_X
static final String XMLNS_SS
static final String XMLNS_HTML
static final String PREFIX_O
static final String PREFIX_X
static final String PREFIX_SS
static final String PREFIX_HTML
Method Detail |
---|
String getTagName()
String getNameSpace()
String getPrefix()
void addElementComment(String comment)
comment
- The string to be printed in xml as a comment to the element.Workbook.setPrintElementComments(boolean print)
List getElementComments()
Element assemble(Element parent, GIO gio)
Element
. Attaches the new element to it's
parent-element if needed.
parent
- the parent-element to which the new formed element
will be appendedgio
- a global information object
void setAttributes(Attributes attrs)
ExcelReader
.
Sets the (xml-)attributes found on the (xml-)element.
attrs
- the attributes found on the elementvoid setChildElement(String localName, String content)
ExcelReader
.
Sets a child element found on the (xml-)element.
localName
- the local name of the childcontent
- the content of the child
|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |