com.bea.ales.management.common
Interface ConstAttributeElement

All Known Subinterfaces:
AttributeElement

public interface ConstAttributeElement
extends java.lang.Cloneable

ConstAttributeElement represents a read-only attribute. This interface provides only the "getter" methods. Attribute is a name value pair.

See Also:
AttributeElement

Method Summary
 java.lang.Object clone()
          Perform deep copy
 java.lang.String getASIType()
          Get the attribute type name.
 java.lang.String getName()
          Get the attribute Name.
 java.lang.Object getValue()
          Get the attribute value.
 java.lang.Object getValueAs(java.lang.Class type)
          Attempts to convert this attribute value to the supplied type.
 boolean isList()
          Determines if this is a multi-valued attribute.
 

Method Detail

clone

public java.lang.Object clone()
Perform deep copy

Returns:
the clone instance

getASIType

public java.lang.String getASIType()
Get the attribute type name.

Returns:
the type name of this attribute.

getName

public java.lang.String getName()
Get the attribute Name.

Returns:
the name of the attribute.

getValue

public java.lang.Object getValue()
Get the attribute value.

Returns:
the value of the attribute. If the attribute has multiple values, java.util.Collection will be returned.

isList

public boolean isList()
Determines if this is a multi-valued attribute.

Returns:
true if this is multi-valued attribute, false if this is not.

getValueAs

public java.lang.Object getValueAs(java.lang.Class type)
                            throws ManagementException,
                                   BadParameterException,
                                   InvalidTypeException,
                                   TypeConversionException
Attempts to convert this attribute value to the supplied type.

Parameters:
type - the type can be one of the following classes:
  • Boolean
  • Date
  • DayOfWeek
  • InetAddress
  • Month
  • Object
  • String
  • Time
Returns:
the converted value of the attribute as the specified type.
Throws:
InvalidTypeException - if the specified type is not valid.
TypeConversionException - if if fails to perform the conversion.
BadParameterException - if parameter is not correct.
ManagementException - if operation fails.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.