1 16 package org.apache.axis.utils; 19 20 21 28 class Token 29 { 30 31 public static final int TOKEN_SEPARATOR = 0; 32 33 public static final int TOKEN_STRING = 1; 34 35 private final int m_type; 36 private final String m_value; 37 38 41 public Token( final int type, final String value ) 42 { 43 m_type = type; 44 m_value = value; 45 } 46 47 50 public final String getValue() 51 { 52 return m_value; 53 } 54 55 58 public final int getType() 59 { 60 return m_type; 61 } 62 63 66 public final String toString() 67 { 68 return new StringBuffer ().append(m_type).append(":").append(m_value).toString(); 69 } 70 } 71 | Popular Tags |