Class ValueType

All Implemented Interfaces:
Cloneable, Constants, Constants, ContextElement, Constants, RuntimeConstants

public class ValueType extends ClassType
ValueType represents any non-special class which does inherit from java.io.Serializable and does not inherit from java.rmi.Remote.

The static forValue(...) method must be used to obtain an instance, and will return null if the ClassDefinition is non-conforming.

  • Field Details

    • isCustom

      private boolean isCustom
  • Constructor Details

    • ValueType

      private ValueType(ClassDefinition classDef, ContextStack stack, boolean isMappedJavaLangClass)
      Create a ValueType instance for the given class. The resulting object is not yet completely initialized.
  • Method Details

    • forValue

      public static ValueType forValue(ClassDefinition classDef, ContextStack stack, boolean quiet)
      Create an ValueType object for the given class. If the class is not a properly formed or if some other error occurs, the return value will be null, and errors will have been reported to the supplied BatchEnvironment.
    • getTypeDescription

      public String getTypeDescription()
      Return a string describing this type.
      Specified by:
      getTypeDescription in class Type
    • isCustom

      public boolean isCustom()
      Return true if this type is a "custom" type (i.e. it implements java.io.Externalizable or has a method with the following signature: private void writeObject(java.io.ObjectOutputStream out);
    • couldBeValue

      private static boolean couldBeValue(ContextStack stack, ClassDefinition classDef)
      Initialize this instance.
    • initialize

      private boolean initialize(ContextStack stack, boolean quiet)
      Initialize this instance.
    • checkPersistentFields

      private boolean checkPersistentFields(Class<?> clz, boolean quiet)
    • getPersistentFields

      private Hashtable<String,String> getPersistentFields(Class<?> clz)
      Get the names and types of all the persistent fields of a Class.