KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > dna > api > DNAWriter


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.object.dna.api;
5
6 import com.tc.object.ObjectID;
7
8
9 /**
10  * Interface for writing DNA
11  */

12 public interface DNAWriter {
13
14   void addLogicalAction(int method, Object JavaDoc[] parameters);
15
16   void addPhysicalAction(String JavaDoc fieldName, Object JavaDoc value);
17
18   void addPhysicalAction(String JavaDoc fieldName, Object JavaDoc value, boolean canBeReference);
19
20   void addArrayElementAction(int index, Object JavaDoc value);
21
22   void addSubArrayAction(int start, Object JavaDoc array, int length);
23
24   void addClassLoaderAction(String JavaDoc classLoaderFieldName, Object JavaDoc value);
25
26   void addEntireArray(Object JavaDoc value);
27
28   void addLiteralValue(Object JavaDoc value);
29
30   void finalizeDNA();
31
32   void setParentObjectID(ObjectID id);
33
34   void setArrayLength(int length);
35
36 }
37
Popular Tags