1 17 package org.apache.commons.cli.avalon; 18 20 26 class Token 27 { 28 29 public static final int TOKEN_SEPARATOR = 0; 30 31 public static final int TOKEN_STRING = 1; 32 33 private final int m_type; 34 private final String m_value; 35 36 39 Token( final int type, final String value ) 40 { 41 m_type = type; 42 m_value = value; 43 } 44 45 48 final String getValue() 49 { 50 return m_value; 51 } 52 53 56 final int getType() 57 { 58 return m_type; 59 } 60 61 64 public final String toString() 65 { 66 final StringBuffer sb = new StringBuffer (); 67 sb.append( m_type ); 68 sb.append( ":" ); 69 sb.append( m_value ); 70 return sb.toString(); 71 } 72 } 73 | Popular Tags |