com.limegroup.gnutella.xml
Class SchemaFieldInfo

java.lang.Object
  extended bycom.limegroup.gnutella.xml.SchemaFieldInfo

public class SchemaFieldInfo
extends java.lang.Object

Stores information pertaining to fields (elements) in xml documents


Field Summary
static int OPTIONS
           
static int TEXTFIELD
           
 
Constructor Summary
SchemaFieldInfo(java.lang.String type)
          Creates a new instance of FieldInfo and initializes internal fields with the passed values
 
Method Summary
 java.lang.String getCanonicalizedFieldName()
          returns the canonicalized field name for which this object stores the information
 java.util.Map getDefaultEnumerativeValueMap()
          Returns Mapping from EnumerativeValue => Mapped Value (String => String).
 java.util.List getEnumerationList()
          Returns the List (of Strings) to store enumerated values, if associated with this field
 int getFieldType()
          returns the type of the field to display
 java.lang.Class getJavaType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXTFIELD

public static final int TEXTFIELD
See Also:
Constant Field Values

OPTIONS

public static final int OPTIONS
See Also:
Constant Field Values
Constructor Detail

SchemaFieldInfo

public SchemaFieldInfo(java.lang.String type)
Creates a new instance of FieldInfo and initializes internal fields with the passed values

Parameters:
type - The tye of the field (eg Integer, String, complex etc)
Method Detail

getJavaType

public java.lang.Class getJavaType()

getFieldType

public int getFieldType()
returns the type of the field to display


getCanonicalizedFieldName

public java.lang.String getCanonicalizedFieldName()
returns the canonicalized field name for which this object stores the information


getEnumerationList

public java.util.List getEnumerationList()
Returns the List (of Strings) to store enumerated values, if associated with this field


getDefaultEnumerativeValueMap

public java.util.Map getDefaultEnumerativeValueMap()
Returns Mapping from EnumerativeValue => Mapped Value (String => String). Returns null, if no enumerative values exist