org.smallmind.cloud.namespace.java
Class JavaName

java.lang.Object
  extended by org.smallmind.cloud.namespace.java.JavaName
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Name

public class JavaName
extends Object
implements Name

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.Name
serialVersionUID
 
Constructor Summary
JavaName(JavaName name)
           
JavaName(NameTranslator nameTranslator)
           
 
Method Summary
 Name add(int posn, String comp)
           
 Name add(String comp)
           
 Name addAll(int posn, Name n)
           
 Name addAll(Name suffix)
           
 Object clone()
           
 int compareTo(Object obj)
           
 boolean endsWith(Name n)
           
 String get(int posn)
           
 Enumeration<String> getAll()
           
protected  ArrayList<String> getNameList()
           
protected  NameTranslator getNameTranslator()
           
 Name getPrefix(int posn)
           
 Name getSuffix(int posn)
           
 boolean isEmpty()
           
 Object remove(int posn)
           
 int size()
           
 boolean startsWith(Name n)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaName

public JavaName(JavaName name)

JavaName

public JavaName(NameTranslator nameTranslator)
Method Detail

getNameTranslator

protected NameTranslator getNameTranslator()

getNameList

protected ArrayList<String> getNameList()

compareTo

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

size

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

isEmpty

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

getAll

public Enumeration<String> getAll()
Specified by:
getAll in interface Name

get

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

getPrefix

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

getSuffix

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

startsWith

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

endsWith

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

addAll

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

addAll

public Name addAll(int posn,
                   Name n)
            throws InvalidNameException
Specified by:
addAll in interface Name
Throws:
InvalidNameException

add

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

add

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

remove

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

clone

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.