
nuggets.delegate.DObjectArray Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-nuggets Show documentation
Show all versions of jadex-nuggets Show documentation
The Jadex nuggets is a fast Java bean to
XML and back converter.
The newest version!
/*
* DObjectArray.java
* Copyright (c) 2005 by University of Hamburg. All Rights Reserved.
* Departament of Informatics.
* Distributed Systems and Information Systems.
*
* Created by walczak on Jan 18, 2006.
* Last revision $Revision: 6926 $ by:
* $Author: braubach $ on $Date: 2008-09-28 22:16:58 +0200 (So, 28 Sep 2008) $.
*/
package nuggets.delegate;
import java.lang.reflect.Array;
import nuggets.IAssembler;
import nuggets.ICruncher;
import nuggets.IDelayedOperation;
import nuggets.IDelegate;
import nuggets.InstanceNotAvailableException;
/** DObjectArray
* @author walczak
* @since Jan 18, 2006
*/
public class DObjectArray extends ADelegate implements IDelegate
{
/**
* @param o
* @param mill
* @see nuggets.delegate.ADelegate#persist(java.lang.Object, nuggets.ICruncher)
*/
public void persist(Object o, ICruncher mill, ClassLoader classloader)
{
final int l = Array.getLength(o);
int i=l;
while(i>0) {
mill.declare(Array.get(o, --i), classloader);
}
mill.startConcept(o);
mill.put("type", o.getClass().getName());
mill.put("length", Integer.toString(l));
while(i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy