|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.MBeanFeatureInfo
javax.management.MBeanAttributeInfo
org.norther.tammi.core.rt.VariableAttributeInfo
public class VariableAttributeInfo
A meta-data description of a variable attribute.
| Field Summary |
|---|
| Fields inherited from class javax.management.MBeanFeatureInfo |
|---|
description, name |
| Constructor Summary | |
|---|---|
VariableAttributeInfo(Object value,
MBeanAttributeInfo info,
MBeanReference owner)
Constructs an attribute description from MBeanAttributeInfo for the specified MBean. |
|
VariableAttributeInfo(Object value,
MBeanConstructorInfo info,
MBeanReference owner)
Constructs an attribute description from MBeanConstructorInfo for the specified MBean. |
|
VariableAttributeInfo(Object value,
MBeanFeatureInfo info,
MBeanReference owner)
Constructs an attribute description from MBeanFeatureInfo for the specified MBean. |
|
VariableAttributeInfo(Object value,
MBeanOperationInfo info,
MBeanReference owner)
Constructs an attribute description from MBeanOperationInfo for the specified MBean. |
|
VariableAttributeInfo(Object value,
MBeanParameterInfo info,
MBeanReference owner)
Constructs an attribute description from MBeanParameterInfo for the specified MBean. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized)
Constructs an attribute description. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
List list)
Constructs an attribute description with a limited set of allowed values. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
Object minValue,
Object maxValue)
Constructs an attribute description with a value range. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern)
Constructs an attribute description with a pattern. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern,
List list)
Constructs an attribute description with a limited set of allowed values and a conversion pattern. |
|
VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern,
Object minValue,
Object maxValue)
Constructs an attribute description with a pattern and value range. |
|
VariableAttributeInfo(String attr,
String type,
String descr)
Constructs a non-initialized attribute description. |
|
VariableAttributeInfo(String attr,
String type,
String descr,
MBeanReference owner)
Constructs a non-initialized attribute description for the specified MBean. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
boolean |
equals(Object obj)
Checks equality of this object. |
Comparator |
getComparator()
Gets the comparator of this attribute. |
String |
getDetail()
Gets the detail of this attribute. |
EnumeratedList |
getEnumeration()
Gets an enumeration of allowed attribute values. |
String |
getGroup()
Gets the group of this attribute. |
Object |
getInitialValue()
Gets the initial value of this attribute. |
Object |
getMaxValue()
Gets the maximum value of this attribute. |
Object |
getMinValue()
Gets the minimum value of this attribute. |
int |
getOptions()
Gets permanent options of this attribute. |
ObjectName |
getOwnerName()
Gets the name of the owner of this attribute. |
String |
getPattern()
Gets the value pattern of this attribute. |
String |
getShadow()
Gets the shadow pattern of this attribute. |
int |
hashCode()
|
boolean |
isArray()
Checks whether this attribute is an array. |
boolean |
isBlankAccepted()
Gets the blank accepted flag of this attribute. |
boolean |
isCloneable()
Gets the cloneable flag of this attribute. |
boolean |
isCollection()
Gets the collection flag of this attribute. |
boolean |
isCorrelative()
Gets the correlative flag of this attribute. |
boolean |
isDisabled()
Gets the disabled flag of this attribute. |
boolean |
isEmptyAccepted()
Gets the empty accepted flag of this attribute. |
boolean |
isEnumerated()
Checks whether this attribute is enumerated. |
boolean |
isInitialized()
Checks whether this attribute is initialized. |
boolean |
isInteractive()
Gets the interactive flag of this attribute. |
boolean |
isLocal()
Gets the local flag of this attribute. |
boolean |
isLocalized()
Gets the localized flag of this attribute. |
boolean |
isLocked()
Gets the locked flag of this attribute. |
boolean |
isMandatory()
Gets the mandatory flag of this attribute. |
boolean |
isOrdered()
Gets the ordered flag of this attribute. |
boolean |
isPrimary()
Gets the primary flag of this attribute. |
boolean |
isPrimitive()
Checks whether this attribute is primitive. |
boolean |
isReadable()
Gets the readable flag of this attribute. |
boolean |
isReference()
Gets the reference flag of this attribute. |
boolean |
isSerialized()
Gets the serialized flag of this attribute. |
boolean |
isSorted()
Gets the sorted flag of this attribute. |
boolean |
isTraceable()
Gets the traceable flag of this attribute. |
boolean |
isTransient()
Gets the transient flag of this attribute. |
boolean |
isTrimmed()
Gets the trimmed flag of this attribute. |
boolean |
isVisible()
Gets the visible flag of this attribute. |
boolean |
isWritable()
Gets the writable flag of this attribute. |
void |
resetCloneAccess()
Resets all temporary masks to their original values. |
void |
resetReadAccess()
Resets readable and serializable masks to their original values. |
void |
resetWriteAccess()
Resets writable, mandatory and transient masks to their original values. |
void |
setBlankAccepted(boolean flag)
Sets the blank accepted flag of this attribute. |
void |
setCloneable(boolean flag)
Sets the cloneable flag of this attribute. |
void |
setCollection(boolean flag)
Sets the collection flag of this attribute. |
void |
setComparator(Comparator comp)
Sets the comparator of this attribute. |
void |
setCorrelative(boolean flag)
Sets the correlative flag of this attribute. |
void |
setDescription(String descr)
Sets the description of this attribute. |
void |
setDetail(String spec)
Sets the detail of this attribute. |
void |
setDisabled(boolean flag)
Sets the disabled flag of this attribute. |
void |
setEmptyAccepted(boolean flag)
Sets the empty accepted flag of this attribute. |
void |
setEnumeration(List list)
Sets the enumeration of allowed attribute values. |
void |
setGroup(String grp)
Sets the group of this attribute. |
void |
setInitialValue(Object value)
Sets the initial attribute value after validation. |
void |
setInteractive(boolean flag)
Sets the interactive flag of this attribute. |
void |
setLocal(boolean flag)
Sets the local flag of this attribute. |
void |
setLocalized(boolean flag)
Sets the localized flag of this attribute. |
void |
setLocked(boolean flag)
Sets the locked flag of this attribute. |
void |
setMandatory(boolean flag)
Sets the mandatory flag of this attribute. |
void |
setMaxValue(Object max)
Sets the maximum value of this attribute. |
void |
setMinValue(Object min)
Sets the minimum value of this attribute. |
void |
setOptions(int mask)
Sets permanent options of this attribute. |
void |
setOrdered(boolean flag)
Sets the ordered flag of this attribute. |
void |
setPattern(String pattern)
Sets the value pattern of this attribute. |
void |
setPrimary(boolean flag)
Sets the primary flag of this attribute. |
void |
setReadable(boolean flag)
Sets the readable flag of this attribute. |
void |
setReference(boolean flag)
Sets the reference flag of this attribute. |
void |
setSerialized(boolean flag)
Sets the serialized flag of this attribute. |
void |
setShadow(String pattern)
Sets the shadow pattern of this attribute. |
void |
setSorted(boolean flag)
Sets the sorted flag of this attribute. |
void |
setTraceable(boolean flag)
Sets the traceable flag of this attribute. |
void |
setTransient(boolean flag)
Sets the transient flag of this attribute. |
void |
setTrimmed(boolean flag)
Sets the trimmed flag of this attribute. |
void |
setVisible(boolean flag)
Sets the visible flag of this attribute. |
void |
setWritable(boolean flag)
Sets the writable flag of this attribute. |
String |
toShadow()
Converts this attribute to a shadow. |
String[] |
toShadows()
Converts the this attribute to a shadows. |
String |
toString()
Converts the initial attribute value to a string. |
String |
toString(Object value)
Converts the specified attribute value to a string. |
String[] |
toStrings(Object value)
Converts the specified attribute value to a string array. |
Object |
validateValue(Object value)
Validates an attribute value. |
| Methods inherited from class javax.management.MBeanAttributeInfo |
|---|
getType, isIs |
| Methods inherited from class javax.management.MBeanFeatureInfo |
|---|
getDescription, getName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VariableAttributeInfo(String attr,
String type,
String descr)
attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.
public VariableAttributeInfo(String attr,
String type,
String descr,
MBeanReference owner)
attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.owner - the optional owner of the attribute.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized)
value - the initial value of the attribute as an object.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if the attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern)
value - the initial value of the attribute.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if the attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.pattern - an optional conversion pattern.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
Object minValue,
Object maxValue)
value - the initial value of the attribute.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if the attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.minValue - an optional minimum value or length of the attribute.maxValue - an optional maximum value or length of the attribute.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern,
Object minValue,
Object maxValue)
value - the initial value of the attribute.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if the attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.pattern - an optional conversion pattern.minValue - an optional minimum value or length of the attribute.maxValue - an optional maximum value or length of the attribute.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
List list)
value - the initial value of the attribute.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if this attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.list - a list of allowed values of the attribute.
public VariableAttributeInfo(Object value,
String attr,
String type,
String descr,
String grp,
String spec,
boolean readable,
boolean writable,
boolean mandatory,
boolean localized,
String pattern,
List list)
value - the initial value of the attribute.attr - the name of the attribute.type - the type or class name of the attribute.descr - a human readable description of the attribute.grp - an optional group of the attribute.spec - an optional detail of the attribute.readable - true if the attribute has a getter method, false
otherwise.writable - true if the attribute has a setter method, false
otherwise.mandatory - true if this attribute is mandatory, false otherwise.localized - true if the attribute value can be localized, false
otherwise.pattern - an optional conversion pattern.list - a list of allowed values of the attribute.
public VariableAttributeInfo(Object value,
MBeanAttributeInfo info,
MBeanReference owner)
value - the initial value of the attribute.info - the feature info to apply.owner - the optional owner of the attribute.
public VariableAttributeInfo(Object value,
MBeanOperationInfo info,
MBeanReference owner)
value - the initial value of the attribute.info - the feature info to apply.owner - the optional owner of the attribute.
NullPointerException - for missing arguments.
public VariableAttributeInfo(Object value,
MBeanConstructorInfo info,
MBeanReference owner)
value - the initial value of the attribute.info - the feature info to apply.owner - the optional owner of the attribute.
NullPointerException - for missing arguments.
public VariableAttributeInfo(Object value,
MBeanParameterInfo info,
MBeanReference owner)
value - the initial value of the attribute.info - the feature info to apply.owner - the optional owner of the attribute.
NullPointerException - for missing arguments.
public VariableAttributeInfo(Object value,
MBeanFeatureInfo info,
MBeanReference owner)
value - the initial value of the attribute.info - the feature info to apply.owner - the optional owner of the attribute.
NullPointerException - for missing arguments.| Method Detail |
|---|
public Object clone()
clone in class MBeanAttributeInfopublic boolean equals(Object obj)
equals in class MBeanAttributeInfoobj - the object with which to compare.
public int hashCode()
hashCode in class MBeanAttributeInfopublic boolean isLocked()
public void setLocked(boolean flag)
Note that a locked attribute can only be unlocked by cloning.
flag - true for a locked attribute.public boolean isVisible()
public void setVisible(boolean flag)
flag - true for a visible attribute, otherwise false.public boolean isReadable()
isReadable in class MBeanAttributeInfopublic void setReadable(boolean flag)
flag - true for a readable attribute, otherwise false.public boolean isWritable()
isWritable in class MBeanAttributeInfopublic void setWritable(boolean flag)
flag - true for a writable attribute, otherwise false.public boolean isCloneable()
public void setCloneable(boolean flag)
flag - true for a cloneable attribute, otherwise false.public boolean isMandatory()
public void setMandatory(boolean flag)
flag - true for a mandatory attribute, otherwise false.public boolean isTransient()
public void setTransient(boolean flag)
Changes to values of transient attributes should not be saved by the applied persistence mechanisms.
flag - true for a transient attribute, otherwise false.public boolean isSerialized()
public void setSerialized(boolean flag)
Values of serialized attributes should be saved as strings by the applied persistence mechanisms.
flag - true for a serialized attribute, otherwise false.public boolean isCorrelative()
public void setCorrelative(boolean flag)
Changes to values of correlative attributes should refresh values of all other attributes of the variable.
flag - true for a correlative attribute, otherwise false.public boolean isInteractive()
public void setInteractive(boolean flag)
Changes to values of interactive attributes should redisplay any interactive views related to the attribute.
flag - true for an interactive attribute, otherwise false.public boolean isReference()
public void setReference(boolean flag)
Values of reference attributes should be registered and unregistered together with their owner variable.
flag - true for a reference attribute, otherwise false.public boolean isCollection()
public void setCollection(boolean flag)
Values of collection attributes may require specific treatment when persisted.
flag - true for a collection attribute, otherwise false.public boolean isPrimary()
public void setPrimary(boolean flag)
Values of primary attributes should uniquely identify the corresponding variable.
flag - true for a primary attribute, otherwise false.public boolean isLocalized()
public void setLocalized(boolean flag)
Values of localized attributes should be translated before displaying.
flag - true for a localized attribute, otherwise false.public boolean isOrdered()
public void setOrdered(boolean flag)
Values of ordered array attributes and enumerations should be sorted before assignment. The associated comparator must be applied, if any.
flag - true for an ordered attribute, otherwise false.public boolean isSorted()
public void setSorted(boolean flag)
String values of sorted array attributes and enumerations of sorted attributes should be sorted after localization. The associated comparator must be applied, if any.
flag - true for a sorted attribute, otherwise false.public boolean isTraceable()
public void setTraceable(boolean flag)
Traceable attributes should maintain a timestamp of their last modification accessed through the methods of the Traceable interface.
flag - true for a traceable attribute, otherwise false.public boolean isDisabled()
public void setDisabled(boolean flag)
Disabled attributes are temporarily non-writable.
flag - true for a disabled attribute, otherwise false.public boolean isTrimmed()
public void setTrimmed(boolean flag)
String representations of trimmed attributes are trimmed before assignments and conversions.
flag - true for a trimmed attribute, otherwise false.public boolean isBlankAccepted()
public void setBlankAccepted(boolean flag)
Note that this option is applied to values given as string arrays. This hack tries to solve the null problem when assigning HTML form based values.
flag - true for a blank nulled attribute, otherwise false.public boolean isEmptyAccepted()
public void setEmptyAccepted(boolean flag)
Note that this option is applied to mandatory array attributes. If true, arrays of zero length are accepted as non-null values.
flag - true for an empty accepted attribute, otherwise false.public boolean isLocal()
public void setLocal(boolean flag)
Local attributes are not imported or exported.
flag - true for a local attribute, otherwise false.public int getOptions()
public void setOptions(int mask)
mask - the permanent option mask.public void resetCloneAccess()
public void resetReadAccess()
public void resetWriteAccess()
public Comparator getComparator()
public void setComparator(Comparator comp)
comp - the comparator.public void setDescription(String descr)
descr - the attribute description.public String getGroup()
public void setGroup(String grp)
grp - the attribute group.public String getDetail()
public void setDetail(String spec)
spec - the attribute detail.public Object getMinValue()
public void setMinValue(Object min)
min - the minimum or null if not defined.
NumberFormatException - if any value is an invalid number.
ClassCastException - if the value is of incorrect type.
UnsupportedOperationException - if the value cannot be converted.
IllegalArgumentException - if the value is out of bounds.public Object getMaxValue()
public void setMaxValue(Object max)
max - the maximum or null if not defined.
NumberFormatException - if any value is an invalid number.
ClassCastException - if the value is of incorrect type.
UnsupportedOperationException - if the value cannot be converted.
IllegalArgumentException - if the value is out of bounds.public String getPattern()
public void setPattern(String pattern)
pattern - the pattern or null if not defined.public String getShadow()
public void setShadow(String pattern)
pattern - the pattern or null if not defined.public EnumeratedList getEnumeration()
EnumAttribute instances.
Note that the iterator of the enumeration is unmodifiable.
public void setEnumeration(List list)
EnumAttribute instances.
list - the enumeration as a list.
NullPointerException - if the enumeration is a null value.
NumberFormatException - if any value is an invalid number.
ClassCastException - if the value is of incorrect type.
UnsupportedOperationException - if the value cannot be converted.
IllegalArgumentException - if the value is out of bounds.public Object getInitialValue()
Note that the value is cloned unless the cloneable flag is set to false.
public void setInitialValue(Object value)
value - the attribute value.
RuntimeConversionException - if the conversion fails.
NumberFormatException - if the value is an invalid number.
ClassCastException - if the value is of incorrect type.
UnsupportedOperationException - if the value cannot be converted.
IllegalArgumentException - if the value is invalid.
IndexOutOfBoundsException - if array indeces are exceeded.
NullPointerException - if the conversion detects nulls.public boolean isInitialized()
public boolean isEnumerated()
public boolean isPrimitive()
public boolean isArray()
public Object validateValue(Object value)
Note that validation does *NOT* check access restrictions, like writable and mandatory, but only the validity of the value itself.
value - the value to validate.
RuntimeConversionException - if the conversion fails.
NumberFormatException - if the value is an invalid number.
ClassCastException - if the value is of incorrect type.
UnsupportedOperationException - if the value cannot be converted.
IllegalArgumentException - if the value is invalid.
IndexOutOfBoundsException - if array indeces are exceeded.
NullPointerException - if the conversion detects nulls.public String toString()
toString in class Objectpublic String toString(Object value)
value - the value to convert.
public String[] toStrings(Object value)
value - the value to convert.
public String toShadow()
public String[] toShadows()
public ObjectName getOwnerName()
|
| ||