|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.domain.model.QpidFeature
org.apache.qpid.management.domain.model.QpidAttribute
org.apache.qpid.management.domain.model.QpidProperty
class QpidProperty
Qpid property definition.
Nested Class Summary | |
---|---|
(package private) static interface |
QpidProperty.Decoder
Decoder interface used for decoding incomng values for this property. |
(package private) class |
QpidProperty.NumberValidator
Validator responsible for validating numbers. |
(package private) class |
QpidProperty.StringValidator
Validator responsible for validating strings. |
Field Summary | |
---|---|
(package private) QpidProperty.Decoder |
_decoder
|
(package private) QpidProperty.Decoder |
_mandatoryPropertyDecoder
Decoder used for decoding incoming values for this mandatory property. |
(package private) QpidProperty.Decoder |
_optionalPropertyDecoder
Decoder used for decoding incoming values for this optional property. |
(package private) static IValidator |
EMPTY_VALIDATOR
Null object used to perform a dummy validation. |
Fields inherited from class org.apache.qpid.management.domain.model.QpidAttribute |
---|
_type, _unit |
Fields inherited from class org.apache.qpid.management.domain.model.QpidFeature |
---|
_description, _name |
Constructor Summary | |
---|---|
QpidProperty()
|
Method Summary | |
---|---|
(package private) Object |
decodeValue(org.apache.qpid.transport.codec.Decoder decoder,
byte[] presenceBitMasks)
Gets the value of this property according to its type definition. |
(package private) AccessMode |
getAccessMode()
Gets the description of this property. |
(package private) int |
getMaxLength()
Gets the max length value for this property. |
(package private) int |
getMaxValue()
Gets the maximum allowed value for this property. |
(package private) int |
getMinValue()
Gets the minimum allowed value for this property. |
(package private) boolean |
isOptional()
Returns true if this property is marked as optional. |
(package private) void |
markAsOptional(int index)
Marks this property as optional. |
(package private) void |
setAccessMode(AccessMode accessMode)
Sets access mode for this property. |
(package private) void |
setMaxLength(int maxLength)
Sets the max length value for this property. |
(package private) void |
setMaxValue(int maxValue)
Sets the masimum allowed value for this property. |
(package private) void |
setMinValue(int minValue)
Sets the minimum allowed value for this property. |
(package private) void |
setType(Type type)
Sets the type of this property. |
(package private) void |
validate(Object value)
Validates the given value according to the current validator. |
Methods inherited from class org.apache.qpid.management.domain.model.QpidAttribute |
---|
decodeValue, getJavaType, getUnit, setUnit, toString |
Methods inherited from class org.apache.qpid.management.domain.model.QpidFeature |
---|
getDescription, getName, setDescription, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
final QpidProperty.Decoder _optionalPropertyDecoder
final QpidProperty.Decoder _mandatoryPropertyDecoder
static final IValidator EMPTY_VALIDATOR
QpidProperty.Decoder _decoder
Constructor Detail |
---|
QpidProperty()
Method Detail |
---|
void validate(Object value) throws ValidationException
value
- the value of this qpid property.
ValidationException
- when the given value is violating the current validator constraints.void setType(Type type)
setType
in class QpidAttribute
type
- the type of this property.Object decodeValue(org.apache.qpid.transport.codec.Decoder decoder, byte[] presenceBitMasks)
decoder
- the decoder used to extract the value.
void setAccessMode(AccessMode accessMode)
accessMode
- the access mode for this property.int getMinValue()
void setMinValue(int minValue)
minValue
- the minimum allowed value for this property.int getMaxValue()
void setMaxValue(int maxValue)
maxValue
- the maximum allowed value for this property.int getMaxLength()
void setMaxLength(int maxLength)
maxLength
- the max length value for this property.AccessMode getAccessMode()
void markAsOptional(int index)
optional
- the optional attribute value for this property.index
- the index of this optional propertyboolean isOptional()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |