org.jboss.xb.builder.runtime
Class ArrayWrapper

java.lang.Object
  extended by org.jboss.xb.builder.runtime.ArrayWrapper

public class ArrayWrapper
extends Object

ArrayWrapper.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
ArrayWrapper(Object parent, QName elementName)
          Create a new ArrayWrapper.
 
Method Summary
 void add(Object obj)
          Add to the array
 Object[] getArray(org.jboss.reflect.spi.TypeInfo propertyType)
          Get the elements
 ParticleBinding getChildParticle()
          Get the childParticle.
 QName getElementName()
          Get the elementName.
 ArrayList<Object> getElements()
          The elements
 Object getParent()
          Get the parent
 ParticleBinding getParentParticle()
          Get the parentParticle.
 void setChildParticle(ParticleBinding childParticle)
          Set the childParticle.
 void setParentParticle(ParticleBinding parentParticle)
          Set the parentParticle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayWrapper

public ArrayWrapper(Object parent,
                    QName elementName)
Create a new ArrayWrapper.

Parameters:
parent - the parent
elementName - the elementName
Method Detail

getElements

public ArrayList<Object> getElements()
The elements

Returns:
the elements

getParent

public Object getParent()
Get the parent

Returns:
the parent

getElementName

public QName getElementName()
Get the elementName.

Returns:
the elementName.

add

public void add(Object obj)
Add to the array

Parameters:
obj - the object

getChildParticle

public ParticleBinding getChildParticle()
Get the childParticle.

Returns:
the childParticle.

setChildParticle

public void setChildParticle(ParticleBinding childParticle)
Set the childParticle.

Parameters:
childParticle - the childParticle.

getParentParticle

public ParticleBinding getParentParticle()
Get the parentParticle.

Returns:
the parentParticle.

setParentParticle

public void setParentParticle(ParticleBinding parentParticle)
Set the parentParticle.

Parameters:
parentParticle - the parentParticle.

getArray

public Object[] getArray(org.jboss.reflect.spi.TypeInfo propertyType)
Get the elements

Parameters:
propertyType - the property type
Returns:
the array


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