org.granite.gravity.adapters
Class TopicId

java.lang.Object
  extended by org.granite.gravity.adapters.TopicId

public class TopicId
extends Object

Adapted from Greg Wilkins code (Jetty).

Author:
William DRAI

Field Summary
static String WILD
           
static String WILDWILD
           
 
Constructor Summary
TopicId(String name)
           
 
Method Summary
 int depth()
           
 boolean equals(Object obj)
           
 String getSegment(int i)
           
 int hashCode()
           
 boolean isParentOf(TopicId id)
           
 boolean isWild()
           
 boolean matches(String name)
           
 boolean matches(TopicId name)
           
static String normalize(String topicId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WILD

public static final String WILD
See Also:
Constant Field Values

WILDWILD

public static final String WILDWILD
See Also:
Constant Field Values
Constructor Detail

TopicId

public TopicId(String name)
Method Detail

isWild

public boolean isWild()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

matches

public boolean matches(TopicId name)

matches

public boolean matches(String name)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

depth

public int depth()

isParentOf

public boolean isParentOf(TopicId id)

getSegment

public String getSegment(int i)

normalize

public static String normalize(String topicId)