org.jboss.metatype.api.values
Interface ArrayValue

All Superinterfaces:
Cloneable, Iterable<Object>, MetaValue, Serializable
All Known Implementing Classes:
ArrayValueSupport

public interface ArrayValue
extends MetaValue, Iterable<Object>

ArrayValue.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Scott.Stark@jboss.org

Method Summary
 int getLength()
          Get the length of the array.
 ArrayMetaType getMetaType()
          Get the metatype for this value
 Object getValue()
          Get the underlying array value.
 Object getValue(int index)
          Get the array element at index.
 
Methods inherited from interface org.jboss.metatype.api.values.MetaValue
clone
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getMetaType

ArrayMetaType getMetaType()
Description copied from interface: MetaValue
Get the metatype for this value

Specified by:
getMetaType in interface MetaValue
Returns:
the metatype

getValue

Object getValue()
Get the underlying array value. This will not be an Object[] in general.

Returns:
the underlying value
See Also:
getValue(int)

getLength

int getLength()
Get the length of the array.

Returns:
length of the array.

getValue

Object getValue(int index)
Get the array element at index.

Parameters:
index - - index into the array.
Returns:
element at index.


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.