|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.Attribute org.archive.crawler.settings.Type
public abstract class Type
Interface implemented by all element types.
Constructor Summary | |
---|---|
Type(java.lang.String name,
java.lang.Object value)
Creates a new instance of Type. |
Method Summary | |
---|---|
void |
addConstraint(Constraint constraint)
Add a constraint to this type. |
boolean |
equals(java.lang.Object o)
The implementation of equals consider to Types as equal if name and value are equal. |
java.util.List |
getConstraints()
Returns a list of constraints for the value of this type. |
(package private) abstract java.lang.Object |
getDefaultValue()
The default value for this type |
(package private) abstract java.lang.String |
getDescription()
Get the description of this type The description should be suitable for showing in a user interface. |
(package private) abstract java.lang.Object[] |
getLegalValues()
Get the legal values for this type. |
java.lang.Class |
getLegalValueType()
Get the class values of this Type must be an instance of. |
boolean |
isExpertSetting()
Returns true if this Type should only show up in expert mode in UI. |
boolean |
isOverrideable()
Is this an 'overrideable' setting. |
boolean |
isTransient()
Returns true if this ComplexType should be saved to persistent storage. |
void |
setExpertSetting(boolean isExpertSetting)
Set if this Type should only show up in expert mode in UI. |
void |
setLegalValueType(java.lang.Class legalValueType)
Set the class values of this Type must be an instance of. |
void |
setOverrideable(boolean b)
Set if this Type should be overideable. |
void |
setTransient(boolean b)
Set to false if this attribute should not be serialized to persistent storage. |
Methods inherited from class javax.management.Attribute |
---|
getName, getValue, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Type(java.lang.String name, java.lang.Object value)
name
- value
- Method Detail |
---|
abstract java.lang.String getDescription()
abstract java.lang.Object getDefaultValue()
abstract java.lang.Object[] getLegalValues()
public boolean isOverrideable()
public void setOverrideable(boolean b)
b
- true if this Type should be overideable.public boolean isTransient()
public void setTransient(boolean b)
b
- if false this complexType will not be saved to persistent
storage.public boolean isExpertSetting()
public void setExpertSetting(boolean isExpertSetting)
isExpertSetting
- true if this Type should only show up in
expert mode in UI.public java.util.List getConstraints()
public void addConstraint(Constraint constraint)
constraint
- the constraint to add.public java.lang.Class getLegalValueType()
public void setLegalValueType(java.lang.Class legalValueType)
legalValueType
- The legalValueType to set.public boolean equals(java.lang.Object o)
equals
in class javax.management.Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |