Enum SerializationType

    • 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

        @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 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​(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
      • 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