com.wles.util
Interface ConstAttributeElement

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
AttributeElement

public interface ConstAttributeElement
extends java.lang.Cloneable

ConstAttributeElement represents an attribute name value pair. This interface provides only the "getter" methods. AttributeElement, which extends this interface, provides the "setter" methods.

See Also:
AttributeElement

Method Summary
 java.lang.Object clone()
          Perform deep copy.
 java.lang.String getASIType()
          Gets the ASI type name.
 java.lang.String getName()
          Gets the attribute Name.
 java.lang.Object getValue()
          Gets the attribute Value.
 java.lang.Object getValueAs(java.lang.Class type)
          Attempts to convert internal 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.


getASIType

public java.lang.String getASIType()
Gets the ASI type name.


getName

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


getValue

public java.lang.Object getValue()
Gets the attribute Value. If this is a multi-valued attribute, then value will be returned as a java.util.Collection. Modification to the value must be made using the AttributeElement.setValue method.


getValueAs

public java.lang.Object getValueAs(java.lang.Class type)
                            throws BadParameterException,
                                   UnsupportedTypeException,
                                   TypeConversionException
Attempts to convert internal value to the supplied type.

Parameters:
type - can be any class registered with TypeConverterRegistry
Returns:
the value of the attribute converted into the type specified by type
Throws:
UnsupportedTypeException - Indicates that a TypeConverter is not registered for the given type.
TypeConversionException - Indicataes that the registered type converter was unable to perform the conversion.
BadParameterException
See Also:
TypeConverterRegistry, TypeConverter

isList

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



Copyright © 2005 BEA Systems Inc. All Rights Reserved.