procope.tools.userclasses
Class UserParameter

java.lang.Object
  extended by procope.tools.userclasses.UserParameter

public class UserParameter
extends Object

Represents a single parameter of a the constructor of a user-defined class. Used internally by ProCope and thus not very well documented.

Author:
Jan Krumsiek
See Also:
UserClusterer, UserScoresCalculator

Constructor Summary
UserParameter(String name, String defVal, UserDataType dataType)
          Creates a new user parameter
 
Method Summary
 Class<?> getDataClass()
          Returns the data class of this parameter
 UserDataType getDataType()
          Returns the data type of this parameter
 String getDefaultValue()
          Returns the default value (string representation) of this parameter
static UserParameter getFromSAX(Attributes atts)
          Get a user parameter from a SAX parses Attributes object
 String getName()
          Returns the name of this parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserParameter

public UserParameter(String name,
                     String defVal,
                     UserDataType dataType)
Creates a new user parameter

Method Detail

getName

public String getName()
Returns the name of this parameter


getDataType

public UserDataType getDataType()
Returns the data type of this parameter


getDataClass

public Class<?> getDataClass()
Returns the data class of this parameter


getDefaultValue

public String getDefaultValue()
Returns the default value (string representation) of this parameter


getFromSAX

public static UserParameter getFromSAX(Attributes atts)
                                throws UserClassSpecException
Get a user parameter from a SAX parses Attributes object

Throws:
UserClassSpecException