Enum SerializationType

java.lang.Object
java.lang.Enum<SerializationType>
org.apache.jackrabbit.vault.fs.api.SerializationType
All Implemented Interfaces:
Serializable, Comparable<SerializationType>, java.lang.constant.Constable

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

    • 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

      @Deprecated public static final SerializationType CND
      Deprecated.
      Don't rely on this serialization type at all and rather place CND files in metadata.
      specifies that the source is a compact node type definition (xcnd file, only relevant for JCR 1.0), regular CND files should be placed in meta data
    • GENERIC

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

    • values

      public static SerializationType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SerializationType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

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

      public String getName()
      Returns the name
      Returns:
      the name
    • getContentType

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

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