1 8 package org.jboss.axis.utils; 11 12 13 20 class Token 21 { 22 25 public static final int TOKEN_SEPARATOR = 0; 26 29 public static final int TOKEN_STRING = 1; 30 31 private final int m_type; 32 private final String m_value; 33 34 37 public Token(final int type, final String value) 38 { 39 m_type = type; 40 m_value = value; 41 } 42 43 46 public final String getValue() 47 { 48 return m_value; 49 } 50 51 54 public final int getType() 55 { 56 return m_type; 57 } 58 59 62 public final String toString() 63 { 64 return new StringBuffer ().append(m_type).append(":").append(m_value).toString(); 65 } 66 } 67 | Popular Tags |