Class ValueType

  • All Implemented Interfaces:
    java.lang.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 Detail

      • isCustom

        private boolean isCustom
    • Constructor Detail

      • 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 Detail

      • 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 java.lang.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);
      • initialize

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

        private boolean checkPersistentFields​(java.lang.Class<?> clz,
                                              boolean quiet)
      • getPersistentFields

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