Enum SerializationType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SerializationType>

    public enum SerializationType
    extends java.lang.Enum<SerializationType>
    Provides a simple enumeration of possible serialization types.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CND
      specifies that the source is a compact node type definition
      GENERIC
      specifies that the source is generic data.
      NONE
      specifies that the source type is not serializable
      UNKOWN
      specifies that the source type is not known
      XML_DOCVIEW
      specifies that the source is a docview serialization
      XML_GENERIC
      specifies that the source is XML but the type not known
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SerializationType fromName​(java.lang.String name)
      Returns the serialization type with the given name
      java.lang.String getContentType()
      Returns the content type of this serialization type
      java.lang.String getName()
      Returns the name
      java.lang.String toString()
      static SerializationType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SerializationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UNKOWN

        public static final SerializationType UNKOWN
        specifies that the source type is not known
      • NONE

        public static final SerializationType NONE
        specifies that the source type is not serializable
      • XML_GENERIC

        public static final SerializationType XML_GENERIC
        specifies that the source is XML but the type not known
      • XML_DOCVIEW

        public static final SerializationType XML_DOCVIEW
        specifies that the source is a docview serialization
      • CND

        public static final SerializationType CND
        specifies that the source is a compact node type definition
      • GENERIC

        public static final SerializationType GENERIC
        specifies that the source is generic data.
    • Method Detail

      • values

        public static SerializationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SerializationType c : SerializationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SerializationType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<SerializationType>
      • getName

        public java.lang.String getName()
        Returns the name
        Returns:
        the name
      • getContentType

        public java.lang.String getContentType()
        Returns the content type of this serialization type
        Returns:
        the content type
      • fromName

        public static SerializationType fromName​(java.lang.String name)
        Returns the serialization type with the given name
        Parameters:
        name - the name to find
        Returns:
        the serialization type or null