mobi.voiceassistant.base
Class Token

java.lang.Object
  extended by mobi.voiceassistant.base.Token
All Implemented Interfaces:
Parcelable

public class Token
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Token> CREATOR
           
static Token[] EMPTY_ARRAY
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Token(String source)
           
Token(String source, String name)
           
Token(String source, String name, String value)
           
Token(String source, String name, String value, Token... children)
           
 
Method Summary
 int describeContents()
           
 Token findTokenByName(String name)
           
 List<Token> findTokensByName(String name)
           
 int getIntValue()
           
 String getName()
           
 String getSource()
           
 Token getTokenByIndex(int index)
           
 int getTokensCount()
           
 String getValue()
           
 boolean hasToken(String name)
           
 boolean isEmpty()
           
 int parseInt()
           
 String toString()
           
 void writeToParcel(Parcel parcel, int flags)
           
static void writeToParcel(Token token, Parcel parcel, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<Token> CREATOR

EMPTY_ARRAY

public static final Token[] EMPTY_ARRAY
Constructor Detail

Token

public Token(String source)

Token

public Token(String source,
             String name)

Token

public Token(String source,
             String name,
             String value)

Token

public Token(String source,
             String name,
             String value,
             Token... children)
Method Detail

getName

public String getName()

getSource

public String getSource()

getValue

public String getValue()

getIntValue

public int getIntValue()

parseInt

public int parseInt()

isEmpty

public boolean isEmpty()

getTokenByIndex

public Token getTokenByIndex(int index)

getTokensCount

public int getTokensCount()

findTokensByName

public List<Token> findTokensByName(String name)

findTokenByName

public Token findTokenByName(String name)

hasToken

public boolean hasToken(String name)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

writeToParcel

public static void writeToParcel(Token token,
                                 Parcel parcel,
                                 int flags)

toString

public String toString()
Overrides:
toString in class Object