org.granite.gravity.gae
Class GAETopicId

java.lang.Object
  extended by org.granite.gravity.gae.GAETopicId

public class GAETopicId
extends Object

Adapted from Greg Wilkins code (Jetty).

Author:
William DRAI

Field Summary
static String WILD
           
static String WILDWILD
           
 
Constructor Summary
GAETopicId(String name)
           
 
Method Summary
 int depth()
           
 boolean equals(Object obj)
           
 String getSegment(int i)
           
 int hashCode()
           
 boolean isParentOf(GAETopicId id)
           
 boolean isWild()
           
 boolean matches(GAETopicId name)
           
 boolean matches(String 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

GAETopicId

public GAETopicId(String name)
Method Detail

isWild

public boolean isWild()

equals

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

matches

public boolean matches(GAETopicId 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(GAETopicId id)

getSegment

public String getSegment(int i)

normalize

public static String normalize(String topicId)