FileDocCategorySizeDatePackage
Token.javaAPI DocApache Axis 1.41851Sat Apr 22 18:57:28 BST 2006org.apache.axis.utils

Token

public class Token extends Object
Token handles tokenizing the CLI arguments
author
Peter Donald
author
Berin Loritsch
since
4.0

Fields Summary
public static final int
TOKEN_SEPARATOR
Type for a separator token
public static final int
TOKEN_STRING
Type for a text token
private final int
m_type
private final String
m_value
Constructors Summary
public Token(int type, String value)
New Token object with a type and value


                 
            
    
        m_type = type;
        m_value = value;
    
Methods Summary
public final intgetType()
Get the type of the token

        return m_type;
    
public final java.lang.StringgetValue()
Get the value of the token

        return m_value;
    
public final java.lang.StringtoString()
Convert to a string

        return new StringBuffer().append(m_type).append(":").append(m_value).toString();