01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.dna.impl;
06:
07: import java.io.Serializable;
08:
09: public class EnumInstance implements Serializable {
10: private final ClassInstance classInstance;
11: private final UTF8ByteDataHolder enumName;
12:
13: public EnumInstance(ClassInstance classInstance,
14: UTF8ByteDataHolder enumName) {
15: this .classInstance = classInstance;
16: this .enumName = enumName;
17: }
18:
19: public ClassInstance getClassInstance() {
20: return classInstance;
21: }
22:
23: public Object getEnumName() {
24: return enumName;
25: }
26:
27: public String toString() {
28: return enumName.asString();
29: }
30: }
|