Top Fields Constructors Methods
javax.imageio.metadata

pack-priv Class IIOAttr

Located in compilation unit of javax.imageio.metadata.IIOMetadataNode.

extends IIOMetadataNode
implements Attr
Class Inheritance
All Implemented Interfaces
org.w3c.dom.Attr, org.w3c.dom.Node

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv Element
pack-priv String

Constructor Summary

AccessConstructor and Description
public
IIOAttr(Element owner, String name, String value)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.w3c.dom.Attr.getName.

Returns the name of this attribute.

public String
getNodeName()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

The name of this node, depending on its type; see the table above.

public short
getNodeType()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A code representing the type of the underlying object, as defined above.

public String
getNodeValue()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeValue.

Implements org.w3c.dom.Node.getNodeValue.

The value of this node, depending on its type; see the table above.

public Element
getOwnerElement()

Implements org.w3c.dom.Attr.getOwnerElement.

The Element node this attribute is attached to or null if this attribute is not in use.

public boolean
getSpecified()

Implements org.w3c.dom.Attr.getSpecified.

True if this attribute was explicitly given a value in the instance document, false otherwise.

public String
getValue()

Implements org.w3c.dom.Attr.getValue.

On retrieval, the value of the attribute is returned as a string.

public boolean

Returns:

false
isId
()

Implements org.w3c.dom.Attr.isId.

This method is new in the DOM L3 for Attr interface.

public void
setNodeValue(String value)

Overrides javax.imageio.metadata.IIOMetadataNode.setNodeValue.

Implements org.w3c.dom.Node.setNodeValue.

The value of this node, depending on its type; see the table above.

public void
public void
setValue(String value)

Implements org.w3c.dom.Attr.setValue.

On retrieval, the value of the attribute is returned as a string.

Inherited from javax.imageio.metadata.IIOMetadataNode:
appendChildcloneNodecompareDocumentPositiongetAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetAttributesgetBaseURIgetChildNodesgetElementsByTagNamegetElementsByTagNameNSgetFeaturegetFirstChildgetLastChildgetLengthgetLocalNamegetNamespaceURIgetNextSiblinggetOwnerDocumentgetParentNodegetPrefixgetPreviousSiblinggetSchemaTypeInfogetTagNamegetTextContentgetUserDatagetUserObjecthasAttributehasAttributeNShasAttributeshasChildNodesinsertBeforeisDefaultNamespaceisEqualNodeisSameNodeisSupporteditemlookupNamespaceURIlookupPrefixnormalizeremoveAttributeremoveAttributeNoderemoveAttributeNSremoveChildreplaceChildsetAttributesetAttributeNodesetAttributeNodeNSsetAttributeNSsetIdAttributesetIdAttributeNodesetIdAttributeNSsetPrefixsetTextContentsetUserDatasetUserObject

Field Detail

nameback to summary
pack-priv String name
ownerback to summary
pack-priv Element owner
valueback to summary
pack-priv String value

Constructor Detail

IIOAttrback to summary
public IIOAttr(Element owner, String name, String value)

Method Detail

getNameback to summary
public String getName()

Implements org.w3c.dom.Attr.getName.

Doc from org.w3c.dom.Attr.getName.

Returns the name of this attribute. If Node.localName is different from null, this attribute is a qualified name.

getNodeNameback to summary
public String getNodeName()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Doc from org.w3c.dom.Node.getNodeName.

The name of this node, depending on its type; see the table above.

Returns:String

Doc from javax.imageio.metadata.IIOMetadataNode.getNodeName.

the node name, as a String.

getNodeTypeback to summary
public short getNodeType()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

Doc from org.w3c.dom.Node.getNodeType.

A code representing the type of the underlying object, as defined above.

Returns:short

Doc from javax.imageio.metadata.IIOMetadataNode.getNodeType.

the short value ELEMENT_NODE.

getNodeValueback to summary
public String getNodeValue()

Overrides javax.imageio.metadata.IIOMetadataNode.getNodeValue.

Implements org.w3c.dom.Node.getNodeValue.

Doc from org.w3c.dom.Node.getNodeValue.

The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect, including if the node is read-only.

Returns:String

Doc from javax.imageio.metadata.IIOMetadataNode.getNodeValue.

the node value, as a String.

getOwnerElementback to summary
public Element getOwnerElement()

Implements org.w3c.dom.Attr.getOwnerElement.

Doc from org.w3c.dom.Attr.getOwnerElement.

The Element node this attribute is attached to or null if this attribute is not in use.

getSpecifiedback to summary
public boolean getSpecified()

Implements org.w3c.dom.Attr.getSpecified.

Doc from org.w3c.dom.Attr.getSpecified.

True if this attribute was explicitly given a value in the instance document, false otherwise. If the application changed the value of this attribute node (even if it ends up having the same value as the default value) then it is set to true. The implementation may handle attributes with default values from other schemas similarly but applications should use Document.normalizeDocument() to guarantee this information is up-to-date.

getValueback to summary
public String getValue()

Implements org.w3c.dom.Attr.getValue.

Doc from org.w3c.dom.Attr.getValue.

On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method Element.setAttribute().
Some specialized implementations, such as some [SVG 1.1] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting.

isIdback to summary
public boolean isId()

Implements org.w3c.dom.Attr.isId.

This method is new in the DOM L3 for Attr interface. Could throw DOMException here, but its probably OK to always return false. One reason for this, is we have no good way to document this exception, since this class, IIOAttr, is not a public class. The rest of the methods that throw DOMException are publicly documented as such on IIOMetadataNode.

Returns:boolean

false

setNodeValueback to summary
public void setNodeValue(String value)

Overrides javax.imageio.metadata.IIOMetadataNode.setNodeValue.

Implements org.w3c.dom.Node.setNodeValue.

Doc from org.w3c.dom.Node.setNodeValue.

The value of this node, depending on its type; see the table above. When it is defined to be null, setting it has no effect, including if the node is read-only.

setOwnerElementback to summary
public void setOwnerElement(Element owner)
setValueback to summary
public void setValue(String value)

Implements org.w3c.dom.Attr.setValue.

Doc from org.w3c.dom.Attr.setValue.

On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method Element.setAttribute().
Some specialized implementations, such as some [SVG 1.1] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting.