Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.shell
Class Token

java.lang.Object
  extended by org.nuxeo.ecm.shell.Token

public class Token
extends java.lang.Object

A token is a command line argument and may be of 3 types:

Author:
Bogdan Stefanescu

Field Summary
static int COMMAND
           
 int index
          The index of this token in the command line (0 based)
 int info
           for OPTIONs this is the token index for its value (0 based) for VALUEs this is the token index for the target option (0 based) for PARAMs this is the index of the parameter in the parameter list (0 based)
static int OPTION
           
static int PARAM
           
 int type
          The token type
 java.lang.String value
          The token value
static int VALUE
           
 
Constructor Summary
Token(int type, java.lang.String value, int index)
           
Token(int type, java.lang.String value, int index, int info)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND

public static final int COMMAND
See Also:
Constant Field Values

OPTION

public static final int OPTION
See Also:
Constant Field Values

VALUE

public static final int VALUE
See Also:
Constant Field Values

PARAM

public static final int PARAM
See Also:
Constant Field Values

type

public final int type
The token type


index

public final int index
The index of this token in the command line (0 based)


info

public int info


value

public final java.lang.String value
The token value

Constructor Detail

Token

public Token(int type,
             java.lang.String value,
             int index,
             int info)

Token

public Token(int type,
             java.lang.String value,
             int index)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.