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
-
S_TYPESTR
-
-
T_CDATA
-
-
T_ENTITIES
-
-
T_ENTITY
-
-
T_ENUMERATION
-
-
T_ID
-
-
T_IDREF
-
-
T_IDREFS
-
-
T_NMTOKEN
-
-
T_NMTOKENS
-
-
T_NOTATION
-
-
T_UNKNOWN
-
-
TXAttribute(String, String)
- Make new TXAttibute instance.
-
TXAttribute(String, String, String, String)
- Make new TXAttibute instance.
-
clone()
- Clone this object.
-
equals(Object)
- Compare only attribute name, not attribute value.
-
getName()
- [DOM] Return attribute name.
-
getNamespace()
- Return namespace.
-
getNodeType()
- [DOM] Return
Node.NodeType.ATTRIBUTE
-
getQName()
- Return qualified name.
-
getSpecified()
- [DOM] Return `specified' flag.
-
getStringValue()
- Return attribute value in
String
.
-
getText()
- Print all text included in this element.
-
getType()
- Return type of this attribute.
-
getTypedValue()
- Return structured values.
-
getValue()
- [DOM] Return attribute value in a list of
Text
.
-
print(PrintWriter, String, int)
- Do nothing.
-
setName(String)
- [DOM] Set attribute name.
-
setSpecified(boolean)
- [DOM] Set `specified' flag.
-
setType(int, String[])
- Set type and typed values.
-
setValue(NodeList)
- [DOM] Set attribute value.
-
setValue(String)
- Set attribute value.
-
toString()
- [DOM]
-
toXMLString()
- Return String representation of this object as `
name="value"
'.
-
toXMLString(String)
- Return String representation of this object as `
name="value"
'.
T_UNKNOWN
public static final int T_UNKNOWN
T_CDATA
public static final int T_CDATA
T_ID
public static final int T_ID
T_IDREF
public static final int T_IDREF
T_IDREFS
public static final int T_IDREFS
T_ENTITY
public static final int T_ENTITY
T_ENTITIES
public static final int T_ENTITIES
T_NMTOKEN
public static final int T_NMTOKEN
T_NMTOKENS
public static final int T_NMTOKENS
T_ENUMERATION
public static final int T_ENUMERATION
T_NOTATION
public static final int T_NOTATION
S_TYPESTR
public static final String S_TYPESTR[]
TXAttribute
public TXAttribute(String k,
String v)
- Make new TXAttibute instance.
TXAttribute
public TXAttribute(String qname,
String ns,
String local,
String v)
- Make new TXAttibute instance.
getNodeType
public int getNodeType()
- [DOM] Return
Node.NodeType.ATTRIBUTE
- Overrides:
- getNodeType in class Child
setName
public void setName(String name)
- [DOM] Set attribute name.
getName
public String getName()
- [DOM] Return attribute name.
setValue
public void setValue(NodeList value)
- [DOM] Set attribute value.
setValue
public void setValue(String v)
- Set attribute value.
getValue
public NodeList getValue()
- [DOM] Return attribute value in a list of
Text
.
getStringValue
public String getStringValue()
- Return attribute value in
String
.
setSpecified
public void setSpecified(boolean specified)
- [DOM] Set `specified' flag.
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.
toString
public String toString()
- [DOM]
- Overrides:
- toString in class Object
clone
public synchronized Object clone()
- Clone this object.
- Overrides:
- clone in class Child
getNamespace
public String getNamespace()
- Return namespace.
- Returns:
- null when the element has no namespace.
getQName
public String getQName()
- Return qualified name.
This is the same of getName() when the Element has no namespace.
getType
public int getType()
- Return type of this attribute.
This method is valid only when RMD is not "NONE".
setType
public void setType(int ty,
String tval[])
- Set type and typed values.
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".
toXMLString
public String toXMLString()
- Return String representation of this object as `
name="value"
'.
toXMLString
public String toXMLString(String enc)
- Return String representation of this object as `
name="value"
'.
equals
public boolean equals(Object obj)
- Compare only attribute name, not attribute value.
- Overrides:
- equals in class Object
getText
public String getText()
- Print all text included in this element.
- Overrides:
- getText in class Child
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