jef.dna.constantInfo.impl
Class UnusableCPTEntry

java.lang.Object
  extended by jef.dna.constantInfo.impl.ConstantAncestor
      extended by jef.dna.constantInfo.impl.UnusableCPTEntry
All Implemented Interfaces:
java.lang.Cloneable, ConstantInfo, UnusableEntry

@ClosingCpInfo
public class UnusableCPTEntry
extends ConstantAncestor
implements UnusableEntry

Default implementation of the UnusableEntry interface.

Author:
Francesco Russo frusso@dev.java.net

Field Summary
protected  java.lang.String type
           
 
Fields inherited from class jef.dna.constantInfo.impl.ConstantAncestor
className, cpt, logger, tag
 
Constructor Summary
UnusableCPTEntry()
          Creates a new instance of UnusableCPTEntry
 
Method Summary
 java.lang.Object clone()
          The clone() method will return a new instance whose reference to the containing ConstantPoolTable instance is set to null.
 void fromStream(java.io.DataInputStream dis)
          Reads the Constant Info fields from the given input stream Actually this method does perform nothing.
protected  void innerValidations(ConstantPoolTable cpt)
           
 void toStream(java.io.DataOutputStream dos)
          Writes to the given output stream the ConstantInfo object.
 
Methods inherited from class jef.dna.constantInfo.impl.ConstantAncestor
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jef.dna.constantInfo.ConstantInfo
getCpt, getTag, getType, setCpt, setTag, updateRefs, validate
 

Field Detail

type

protected java.lang.String type
Constructor Detail

UnusableCPTEntry

public UnusableCPTEntry()
Creates a new instance of UnusableCPTEntry

Method Detail

toStream

public void toStream(java.io.DataOutputStream dos)
              throws DnaSerializationException
Writes to the given output stream the ConstantInfo object. Actually this method does perform nothing.

Specified by:
toStream in interface ConstantInfo
Specified by:
toStream in class ConstantAncestor
Parameters:
dos - The DataOutputStream to write the object to
Throws:
DnaSerializationException

fromStream

public void fromStream(java.io.DataInputStream dis)
                throws DnaDeserializationException
Reads the Constant Info fields from the given input stream Actually this method does perform nothing.

Specified by:
fromStream in interface ConstantInfo
Specified by:
fromStream in class ConstantAncestor
Parameters:
dis - The DataInputStream for reading the Constant Info fields
Throws:
DnaDeserializationException

innerValidations

protected void innerValidations(ConstantPoolTable cpt)
                         throws ConstantInfoValidationException,
                                ConstantInfoAttributeOutOfRangeException
Specified by:
innerValidations in class ConstantAncestor
Throws:
ConstantInfoValidationException
ConstantInfoAttributeOutOfRangeException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone() method will return a new instance whose reference to the containing ConstantPoolTable instance is set to null. It is up to you appropriately setting it to the correct value.

Specified by:
clone in interface ConstantInfo
Overrides:
clone in class ConstantAncestor
Returns:
The clone
Throws:
java.lang.CloneNotSupportedException