org.odftoolkit.odfdom.pkg
Class OdfAlienAttribute
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.AttrImpl
org.apache.xerces.dom.AttrNSImpl
org.odftoolkit.odfdom.pkg.OdfAttribute
org.odftoolkit.odfdom.pkg.OdfAlienAttribute
- All Implemented Interfaces:
- Serializable, Cloneable, Attr, EventTarget, Node, NodeList, TypeInfo
public class OdfAlienAttribute
- extends OdfAttribute
Any attribute within the ODF package that is listed in the ODF schema.
Note: Existence does not imply invalid ODF, as even namespace attributes are not
listed and mapped to an OdfAlienAttribute.
- See Also:
- Serialized Form
Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Methods inherited from class org.apache.xerces.dom.AttrImpl |
cloneNode, getChildNodes, getElement, getFirstChild, getLastChild, getLength, getName, getNodeName, getNodeType, getNodeValue, getOwnerElement, getSchemaTypeInfo, getSpecified, getValue, hasChildNodes, insertBefore, isEqualNode, isId, item, makeChildNode, normalize, removeChild, replaceChild, setIdAttribute, setNodeValue, setOwnerDocument, setReadOnly, setSpecified, setType, setValue, synchronizeChildren, toString |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getBaseURI, getContainer, getFeature, getNextSibling, getNodeNumber, getOwnerDocument, getParentNode, getPreviousSibling, getReadOnly, getTextContent, getUserData, getUserData, getUserDataRecord, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setTextContent, setUserData, setUserData, synchronizeData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
ATTRIBUTE_NAME
public final OdfName ATTRIBUTE_NAME
OdfAlienAttribute
public OdfAlienAttribute(OdfFileDom ownerDocument,
OdfName name)
throws DOMException
- Creates an alien attribute on the XML file
- Parameters:
ownerDocument
- the DOM of the XML file within the ODF packagename
- of the XML attribute to be created
- Throws:
DOMException
- thrown for any problem during attribute creation
getOdfName
public OdfName getOdfName()
- Description copied from class:
OdfAttribute
- Returns the attribute name.
- Specified by:
getOdfName
in class OdfAttribute
- Returns:
- the
OdfName
for the attribute.
getDefault
public String getDefault()
- Description copied from class:
OdfAttribute
- Returns the default value of table:number-columns-repeated.
- Specified by:
getDefault
in class OdfAttribute
- Returns:
- the default value as String
hasDefault
public boolean hasDefault()
- Description copied from class:
OdfAttribute
- Default value indicator
- Specified by:
hasDefault
in class OdfAttribute
- Returns:
- true if a default exists
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.