All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.xml.parser.TXAttribute

java.lang.Object
   |
   +----com.ibm.xml.parser.Child
           |
           +----com.ibm.xml.parser.TXAttribute

public class TXAttribute
extends Child
implements Attribute
Version:
19980204

Variable Index

 o S_TYPESTR
 o T_CDATA
 o T_ENTITIES
 o T_ENTITY
 o T_ENUMERATION
 o T_ID
 o T_IDREF
 o T_IDREFS
 o T_NMTOKEN
 o T_NMTOKENS
 o T_NOTATION
 o T_UNKNOWN

Constructor Index

 o TXAttribute(String, String)
Make new TXAttibute instance.
 o TXAttribute(String, String, String, String)
Make new TXAttibute instance.

Method Index

 o clone()
Clone this object.
 o equals(Object)
Compare only attribute name, not attribute value.
 o getName()
[DOM] Return attribute name.
 o getNamespace()
Return namespace.
 o getNodeType()
[DOM] Return Node.NodeType.ATTRIBUTE
 o getQName()
Return qualified name.
 o getSpecified()
[DOM] Return `specified' flag.
 o getStringValue()
Return attribute value in String.
 o getText()
Print all text included in this element.
 o getType()
Return type of this attribute.
 o getTypedValue()
Return structured values.
 o getValue()
[DOM] Return attribute value in a list of Text.
 o print(PrintWriter, String, int)
Do nothing.
 o setName(String)
[DOM] Set attribute name.
 o setSpecified(boolean)
[DOM] Set `specified' flag.
 o setType(int, String[])
Set type and typed values.
 o setValue(NodeList)
[DOM] Set attribute value.
 o setValue(String)
Set attribute value.
 o toString()
[DOM]
 o toXMLString()
Return String representation of this object as `name="value"'.
 o toXMLString(String)
Return String representation of this object as `name="value"'.

Variables

 o T_UNKNOWN
 public static final int T_UNKNOWN
 o T_CDATA
 public static final int T_CDATA
 o T_ID
 public static final int T_ID
 o T_IDREF
 public static final int T_IDREF
 o T_IDREFS
 public static final int T_IDREFS
 o T_ENTITY
 public static final int T_ENTITY
 o T_ENTITIES
 public static final int T_ENTITIES
 o T_NMTOKEN
 public static final int T_NMTOKEN
 o T_NMTOKENS
 public static final int T_NMTOKENS
 o T_ENUMERATION
 public static final int T_ENUMERATION
 o T_NOTATION
 public static final int T_NOTATION
 o S_TYPESTR
 public static final String S_TYPESTR[]

Constructors

 o TXAttribute
 public TXAttribute(String k,
                    String v)
Make new TXAttibute instance.

 o TXAttribute
 public TXAttribute(String qname,
                    String ns,
                    String local,
                    String v)
Make new TXAttibute instance.

Methods

 o getNodeType
 public int getNodeType()
[DOM] Return Node.NodeType.ATTRIBUTE

Overrides:
getNodeType in class Child
 o setName
 public void setName(String name)
[DOM] Set attribute name.

 o getName
 public String getName()
[DOM] Return attribute name.

 o setValue
 public void setValue(NodeList value)
[DOM] Set attribute value.

 o setValue
 public void setValue(String v)
Set attribute value.

 o getValue
 public NodeList getValue()
[DOM] Return attribute value in a list of Text.

 o getStringValue
 public String getStringValue()
Return attribute value in String.

 o setSpecified
 public void setSpecified(boolean specified)
[DOM] Set `specified' flag.

 o getSpecified
 public boolean getSpecified()
[DOM] Return `specified' flag. `false' means that this attribute is not specified in a document and was generated by the processor according to DTD.

 o toString
 public String toString()
[DOM]

Overrides:
toString in class Object
 o clone
 public synchronized Object clone()
Clone this object.

Overrides:
clone in class Child
 o getNamespace
 public String getNamespace()
Return namespace.

Returns:
null when the element has no namespace.
 o getQName
 public String getQName()
Return qualified name. This is the same of getName() when the Element has no namespace.

 o getType
 public int getType()
Return type of this attribute. This method is valid only when RMD is not "NONE".

 o setType
 public void setType(int ty,
                     String tval[])
Set type and typed values.

 o getTypedValue
 public String[] getTypedValue()
Return structured values. getTypedValue()[0] equals getValue() when getType() is T_CDATA, T_ENUMERATION, T_NOTATION, T_ID, T_IDREF, T_ENTITY, T_NMTOKEN. This method is valid when RMD is not "NONE".

 o toXMLString
 public String toXMLString()
Return String representation of this object as `name="value"'.

 o toXMLString
 public String toXMLString(String enc)
Return String representation of this object as `name="value"'.

 o equals
 public boolean equals(Object obj)
Compare only attribute name, not attribute value.

Overrides:
equals in class Object
 o getText
 public String getText()
Print all text included in this element.

Overrides:
getText in class Child
 o print
 public void print(PrintWriter pw,
                   String enc,
                   int indent)
Do nothing.

Overrides:
print in class Child

All Packages  Class Hierarchy  This Package  Previous  Next  Index