uic.output.builder
Class ArrayRepresenter

java.lang.Object
  extended byuic.output.builder.Representer
      extended byuic.output.builder.ValueRepresenter
          extended byuic.output.builder.ArrayRepresenter

public class ArrayRepresenter
extends ValueRepresenter

A Representer for an Array. String[] {"bla", "bla"} for example.


Field Summary
 
Fields inherited from class uic.output.builder.ValueRepresenter
type
 
Fields inherited from class uic.output.builder.Representer
name, parent, staticParent
 
Constructor Summary
ArrayRepresenter(Class type)
           
ArrayRepresenter(String type)
           
 
Method Summary
 void add(boolean value)
          Add a new member to the array.
 void add(byte value)
          Add a new member to the array.
 void add(char value)
          Add a new member to the array.
 void add(double value)
          Add a new member to the array.
 void add(float value)
          Add a new member to the array.
 void add(int value)
          Add a new member to the array.
 void add(long value)
          Add a new member to the array.
 void add(Object object)
          Add a new member to the array.
 Object getValue()
           
 Vector getValues()
           
 
Methods inherited from class uic.output.builder.ValueRepresenter
getType, toString
 
Methods inherited from class uic.output.builder.Representer
getName, getParent, getStaticParent, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayRepresenter

public ArrayRepresenter(Class type)
Parameters:
type - the class type the target array has members of.

ArrayRepresenter

public ArrayRepresenter(String type)
Parameters:
type - the fully specified class name the target array has members of.
Method Detail

add

public void add(Object object)
Add a new member to the array.


add

public void add(int value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(boolean value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(char value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(double value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(long value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(float value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

add

public void add(byte value)
Add a new member to the array.

Throws:
IllegalArgumentException - when the class was contructed with a different type of object.

getValue

public Object getValue()
Overrides:
getValue in class ValueRepresenter

getValues

public Vector getValues()


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence