|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.Attribute
org.archive.crawler.settings.Type
org.archive.crawler.settings.SimpleType
public class SimpleType
A type that holds a Java type.
| Constructor Summary | |
|---|---|
SimpleType(java.lang.String name,
java.lang.String description,
java.lang.Object defaultValue)
Create a new instance of SimpleType. |
|
SimpleType(java.lang.String name,
java.lang.String description,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
Create a new instance of SimpleType. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getDefaultValue()
The default value for this type |
java.lang.String |
getDescription()
Get the description of this type The description should be suitable for showing in a user interface. |
java.lang.Object[] |
getLegalValues()
Get the array of legal values for this Type. |
void |
setLegalValues(java.lang.Object[] legalValues)
Set the array of legal values for this type. |
| Methods inherited from class org.archive.crawler.settings.Type |
|---|
addConstraint, equals, getConstraints, getLegalValueType, isExpertSetting, isOverrideable, isTransient, setExpertSetting, setLegalValueType, setOverrideable, setTransient |
| Methods inherited from class javax.management.Attribute |
|---|
getName, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleType(java.lang.String name,
java.lang.String description,
java.lang.Object defaultValue)
name - the name of the type.description - a description suitable for the UI.defaultValue - the default value for this type. This also set what
kind of Java type that this Type can hold.
public SimpleType(java.lang.String name,
java.lang.String description,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
name - the name of the type.description - a description suitable for the UI.defaultValue - the default value for this type. This also set what
kind of Java type that this Type can hold.legalValues - an array of legal values for this simple type. The
objects in this array must be of the same type as the default
value.| Method Detail |
|---|
public java.lang.String getDescription()
Type
getDescription in class Typepublic java.lang.Object getDefaultValue()
Type
getDefaultValue in class Typepublic java.lang.Object[] getLegalValues()
getLegalValues in class Typepublic void setLegalValues(java.lang.Object[] legalValues)
The objects in this array must be of the same type as the default value.
legalValues -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||