| java.lang.Object com.caucho.naming.QName
QName | public class QName implements Name(Code) | | Represents a parsed JNDI name.
|
QName | public QName(Context context)(Code) | | Creates a root name based on a context.
Parameters: context - the root context |
QName | public QName(Context context, String first)(Code) | | Creates a new name with a single component.
Parameters: context - the root context Parameters: first - the first name component |
QName | public QName(Context context, String first, String rest)(Code) | | Creates a new name with two components
Parameters: context - the root context Parameters: first - the first name component Parameters: tail - the tail name component |
add | public Name add(String comp) throws InvalidNameException(Code) | | Add a component to the tail of the name, returning the name.
Parameters: comp - the new component to add. the modified name |
addAll | public Name addAll(Name suffix) throws InvalidNameException(Code) | | Append a name to the current name.
Parameters: suffix - the name to add as a suffix the modified name |
addAll | public Name addAll(int posn, Name suffix) throws InvalidNameException(Code) | | Insert a name to the current name.
Parameters: suffix - the name to add as a suffix the modified name |
compareTo | public int compareTo(Object rawB)(Code) | | Compares the name to another name.
-1 if less than b, 0 if equal, or 1 if greater chan |
equals | public boolean equals(Object obj)(Code) | | Returns true if the object is an equivalent name.
Parameters: obj - the object to test for equality. |
hashCode | public int hashCode()(Code) | | Returns the name's hash code.
|
isEmpty | public boolean isEmpty()(Code) | | |
startsWith | public boolean startsWith(Name name)(Code) | | Returns true if the argument is a prefix of the name.
Parameters: name - the Name to start as a prefix. |
toString | public String toString()(Code) | | Converts the name to a string.
|
|
|