com.sapportals.portal.prt.jndisupport.util

Class RegistryName

java.lang.Object
  extended by com.sapportals.portal.prt.jndisupport.util.RegistryName
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Name

public class RegistryName
extends Object
implements Name

Very basic name implementation used by AbstractHierarchicalContext for performance reason

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.Name
serialVersionUID
 
Constructor Summary
RegistryName(String name, String separator)
           
 
Method Summary
 Name add(int posn, String comp)
           
 Name add(String comp)
           
 Name addAll(int parm1, Name parm2)
           
 Name addAll(Name parm1)
           
 Object clone()
           
 int compareTo(Object obj)
           
 boolean endsWith(Name parm1)
           
 String get(int posn)
           
 Enumeration getAll()
           
 Name getPrefix(int posn)
           
 Name getSuffix(int posn)
          Creates a composite name whose components consist of a suffix of the components in this composite name.
 boolean isEmpty()
           
 Object remove(int posn)
           
 int size()
           
 boolean startsWith(Name parm1)
           
 String[] tokenize(String szInput, char delimiter)
          Take the given string and chop it up into a series of strings.
 List tokenizeInList(String szInput, char delimiter)
          Take the given string and chop it up into a List.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryName

public RegistryName(String name,
                    String separator)
Method Detail

addAll

public Name addAll(Name parm1)
            throws InvalidNameException
Specified by:
addAll in interface Name
Throws:
InvalidNameException

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Name

add

public Name add(String comp)
         throws InvalidNameException
Specified by:
add in interface Name
Throws:
InvalidNameException

addAll

public Name addAll(int parm1,
                   Name parm2)
            throws InvalidNameException
Specified by:
addAll in interface Name
Throws:
InvalidNameException

getSuffix

public Name getSuffix(int posn)
Creates a composite name whose components consist of a suffix of the components in this composite name. Subsequent changes to this composite name does not affect the name that is returned.

Specified by:
getSuffix in interface Name
Parameters:
posn - - The 0-based index of the component at which to start. Must be in the range [0,size()].

size

public int size()
Specified by:
size in interface Name

endsWith

public boolean endsWith(Name parm1)
Specified by:
endsWith in interface Name

remove

public Object remove(int posn)
              throws InvalidNameException
Specified by:
remove in interface Name
Throws:
InvalidNameException

getPrefix

public Name getPrefix(int posn)
Specified by:
getPrefix in interface Name

get

public String get(int posn)
Specified by:
get in interface Name

getAll

public Enumeration getAll()
Specified by:
getAll in interface Name

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable<Object>
Specified by:
compareTo in interface Name

clone

public Object clone()
Specified by:
clone in interface Name
Overrides:
clone in class Object

startsWith

public boolean startsWith(Name parm1)
Specified by:
startsWith in interface Name

add

public Name add(int posn,
                String comp)
         throws InvalidNameException
Specified by:
add in interface Name
Throws:
InvalidNameException

toString

public String toString()
Overrides:
toString in class Object

tokenize

public String[] tokenize(String szInput,
                         char delimiter)
Take the given string and chop it up into a series of strings. Better use this optimal version when the tokens are separated by a character.

Parameters:
szInput - the input String
delimiter - the delimiter character
Returns:
an array of strings

tokenizeInList

public List tokenizeInList(String szInput,
                           char delimiter)
Take the given string and chop it up into a List. Better use this optimal version when the tokens are separated by a character.

Parameters:
szInput - the input String
delimiter - the delimiter character
Returns:
a List of strings
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/basis/jndisupportdeprecated api EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice