Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

Class com.ibm.xml.xpointer.RelTermAttribute

java.lang.Object
    |
    +----com.ibm.xml.xpointer.RelTermAttribute

public class RelTermAttribute
extends java.lang.Object
implements java.io.Serializable
The RelTermAttribute class provides support for attribute qualifiers to elements which are candidates for relative location terms in XPointers. Refer to RelTerm for details on how relative location terms are specified.

Attribute qualifiers consist of two parts:

Attr
This is the name of the attribute qualifier. It can be specified in two ways:
Value
This is the value of the attribute qualifier. It can be specified in four ways:

Version:
Revision: 78 1.4 src/com/ibm/xml/xpointer/RelTermAttribute.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
See Also:
RelTerm, XPointer

Constructor Summary
 RelTermAttribute(java.lang.String attr, int valueType, java.lang.String value)
Constructor.
 

Method Summary
java.lang.String  getName()
Returns this attribute qualifier's name.
java.lang.String  getValue()
Returns this attribute qualifier's value.
int  getValueType()
Returns this attribute qualifier's value type.
java.lang.String  toString()
Returns this attribute qualifier in the form of either:
  • ,attr,#IMPLIED
  • ,attr,*
  • ,attr,name
  • ,attr,"name"
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelTermAttribute

public RelTermAttribute(java.lang.String attr,
                        int valueType,
                        java.lang.String value)
Constructor.
Parameters:
attr - Name of this attribute qualifier. Specify * to match any name.
valueType - One of: XPointer.T_IMPLIED, T_ANY, T_NAME, T_EXACT
value - Value of this attribute qualifier. Specify #IMPLIED to match defaulted values. Specify * to match any value. Case-sensitive values should be specified without quotes.
Method Detail

getName

public java.lang.String getName()
Returns this attribute qualifier's name.
Returns:
Name of this attribute qualifier.

getValueType

public int getValueType()
Returns this attribute qualifier's value type.
Returns:
One of: XPointer.T_IMPLIED, T_ANY, T_NAME, T_EXACT

getValue

public java.lang.String getValue()
Returns this attribute qualifier's value.
Returns:
Value of this attribute qualifier. Case sensitive values will not contain surrounding quotes.

toString

public java.lang.String toString()
Returns this attribute qualifier in the form of either:
Returns:
A string represention of this attribute qualifier. Note: This is not a standalone location term.
Overrides:
toString in class java.lang.Object
See Also:
com.ibm.xml.XPointer.toString

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS