Enum SerializationType
- java.lang.Object
-
- java.lang.Enum<SerializationType>
-
- org.apache.jackrabbit.vault.fs.api.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
Deprecated.Don't rely on this serialization type at all and rather place CND files in metadata.GENERIC
specifies that the source is generic data.NONE
specifies that the source type is not serializableUNKOWN
specifies that the source type is not knownXML_DOCVIEW
specifies that the source is a docview serializationXML_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 namejava.lang.String
getContentType()
Returns the content type of this serialization typejava.lang.String
getName()
Returns the namejava.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.
-
-
-
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(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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-