Enum SerializationType
- All Implemented Interfaces:
Serializable,Comparable<SerializationType>,java.lang.constant.Constable
Provides a simple enumeration of possible serialization types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Don't rely on this serialization type at all and rather place CND files in metadata.specifies that the source is generic data.specifies that the source type is not serializablespecifies that the source type is not knownspecifies that the source is a docview serializationspecifies that the source is XML but the type not known -
Method Summary
Modifier and TypeMethodDescriptionstatic SerializationTypeReturns the serialization type with the given nameReturns the content type of this serialization typegetName()Returns the nametoString()static SerializationTypeReturns 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, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
UNKOWN
specifies that the source type is not known -
NONE
specifies that the source type is not serializable -
XML_GENERIC
specifies that the source is XML but the type not known -
XML_DOCVIEW
specifies that the source is a docview serialization -
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
specifies that the source is generic data.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<SerializationType>
-
getName
Returns the name- Returns:
- the name
-
getContentType
Returns the content type of this serialization type- Returns:
- the content type
-
fromName
Returns the serialization type with the given name- Parameters:
name- the name to find- Returns:
- the serialization type or null
-