Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.util.data
Class ArrayType  view ArrayType download ArrayType.java

java.lang.Object
  extended byorg.jdaemon.util.data.Type
      extended byorg.jdaemon.util.data.ArrayType

public class ArrayType
extends Type

Type object for Saving/Loading arrays from a DataRepresentation


Field Summary
private  Type element_type
           
 
Fields inherited from class org.jdaemon.util.data.Type
 
Constructor Summary
ArrayType(Type element_type)
          Creates a new instance of ArrayType
 
Method Summary
private static java.lang.Class getArrayClass(java.lang.Class element_class)
           
 java.lang.Object read(DataRepresentation representation)
          Reads an array of objects from some DataRepresentation.
 void write(DataRepresentation representation, java.lang.Object object)
          Writes an array of objects to some DataRepresentation.
 
Methods inherited from class org.jdaemon.util.data.Type
addSubtype, get, get, getJavaClass, getName, getType, getType, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element_type

private Type element_type
Constructor Detail

ArrayType

public ArrayType(Type element_type)
Creates a new instance of ArrayType

Method Detail

getArrayClass

private static java.lang.Class getArrayClass(java.lang.Class element_class)

read

public java.lang.Object read(DataRepresentation representation)
                      throws ReadError,
                             ObjectInstantiationError
Reads an array of objects from some DataRepresentation.

Specified by:
read in class Type

write

public void write(DataRepresentation representation,
                  java.lang.Object object)
           throws WriteError
Writes an array of objects to some DataRepresentation.

Specified by:
write in class Type