|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ramblingwood.minecraft.jsonapi.api.APIMethodName
public class APIMethodName
This class represents an API method such as "remotetoolkit.startServer" or "getServer". The part before the dot is called the namespace and the part after is called the method name.
Constructor Summary | |
---|---|
APIMethodName(java.lang.String combined)
|
|
APIMethodName(java.lang.String namespace,
java.lang.String method)
|
Method Summary | |
---|---|
java.lang.String |
getMethodName()
For the API method "foo.bar", this method will return "bar". |
java.lang.String |
getNamespace()
For the API method "foo.bar", this method will return "foo". |
boolean |
matches(java.lang.String test)
For the API method "foo.bar", this method will return true if test is "foo.bar" and false otherwise. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public APIMethodName(java.lang.String namespace, java.lang.String method)
public APIMethodName(java.lang.String combined)
Method Detail |
---|
public java.lang.String getNamespace()
public java.lang.String getMethodName()
public boolean matches(java.lang.String test)
test
- The fully-qualified string to test against.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |