org.odftoolkit.odfdom.dom.attribute.text
Class TextStartValueAttribute

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.AttrImpl
          extended by org.apache.xerces.dom.AttrNSImpl
              extended by org.odftoolkit.odfdom.OdfAttribute
                  extended by org.odftoolkit.odfdom.dom.attribute.text.TextStartValueAttribute
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Attr, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

public class TextStartValueAttribute
extends OdfAttribute

DOM implementation of OpenDocument attribute .

See Also:
Serialized Form

Field Summary
static OdfName ATTRIBUTE_NAME
           
static java.lang.String DEFAULT_VALUE
           
 
Fields inherited from class org.apache.xerces.dom.AttrNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.AttrImpl
name, textNode, value
 
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
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
TextStartValueAttribute(OdfFileDom ownerDocument)
          Create the instance of OpenDocument attribute .
 
Method Summary
 java.lang.String getDefault()
          Returns the default value of dependent of its element name
 java.lang.String getName()
           
 OdfName getOdfName()
          Returns the attribute name.
 java.lang.String getValue()
           
 boolean hasDefault()
          Default value indicator.
 boolean isId()
           
 void setValue(java.lang.String attrValue)
           
 
Methods inherited from class org.apache.xerces.dom.AttrNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setValues
 
Methods inherited from class org.apache.xerces.dom.AttrImpl
cloneNode, getChildNodes, getElement, getFirstChild, getLastChild, getLength, getNodeName, getNodeType, getNodeValue, getOwnerElement, getSchemaTypeInfo, getSpecified, hasChildNodes, insertBefore, isEqualNode, item, makeChildNode, normalize, removeChild, replaceChild, setIdAttribute, setNodeValue, setOwnerDocument, setReadOnly, setSpecified, setType, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

ATTRIBUTE_NAME

public static final OdfName ATTRIBUTE_NAME

DEFAULT_VALUE

public static final java.lang.String DEFAULT_VALUE
See Also:
Constant Field Values
Constructor Detail

TextStartValueAttribute

public TextStartValueAttribute(OdfFileDom ownerDocument)
Create the instance of OpenDocument attribute .

Parameters:
ownerDocument - The type is OdfFileDom
Method Detail

getOdfName

public OdfName getOdfName()
Returns the attribute name.

Specified by:
getOdfName in class OdfAttribute
Returns:
the OdfName for .

getName

public java.lang.String getName()
Specified by:
getName in interface org.w3c.dom.Attr
Overrides:
getName in class org.apache.xerces.dom.AttrImpl
Returns:
Returns the name of this attribute.

setValue

public void setValue(java.lang.String attrValue)
Specified by:
setValue in interface org.w3c.dom.Attr
Overrides:
setValue in class org.apache.xerces.dom.AttrImpl
Parameters:
attrValue - The String value of the attribute.
Throws:
java.lang.IllegalArgumentException - If the provided attribute value is invalid

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.w3c.dom.Attr
Overrides:
getValue in class org.apache.xerces.dom.AttrImpl
Returns:
Returns the String value of the attribute

getDefault

public java.lang.String getDefault()
Returns the default value of dependent of its element name

Specified by:
getDefault in class OdfAttribute
Returns:
the default value as String, return null if the default value does not exist

hasDefault

public boolean hasDefault()
Default value indicator. As the attribute default value is dependent from its element, the attribute has only a default, when a parent element exists.

Specified by:
hasDefault in class OdfAttribute
Returns:
true if has an element parent otherwise return false as undefined.

isId

public boolean isId()
Specified by:
isId in interface org.w3c.dom.Attr
Overrides:
isId in class org.apache.xerces.dom.AttrImpl
Returns:
Returns whether this attribute is known to be of type ID (i.e. xml:id ?)


Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.