Enum Class ReferenceType
- All Implemented Interfaces:
Serializable,Comparable<ReferenceType>,Constable
Support for reference types and prefixes.
- Since:
- 4.0.120
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReference type forDocumentGroupelements, prefix is "docgroup".Reference type forLinkTemplateelements, prefix is "linktemplate".Reference type forMasterTemplateelements, prefix is "template".Reference type forMediaelements, prefix is "media".Reference type forMediaFolderelements, prefix is "mediafolder".Reference type forPageRefelements, prefix is "pageref".Reference type forPageRefFolderelements, prefix is "pagefolder".Reference type forScriptelements, prefix is "script".Reference type forFormatTemplateelements, prefix is "template". -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests, whether the given reference name is of the questioned type.prefix()Provides the prefix (including the colon) designating reference types.Strip the prefix of the questioned type from the given reference name.type()Provides the type's name.static @Nullable ReferenceTypetypeOf(IDProvider.UidType uidType) Determine the reference type based on the given uid type.static @Nullable ReferenceTypestatic ReferenceTypeReturns the enum constant of this class with the specified name.static ReferenceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGEREF
Reference type forPageRefelements, prefix is "pageref".- Since:
- 4.0.120
-
PAGEREFFOLDER
Reference type forPageRefFolderelements, prefix is "pagefolder".- Since:
- 4.0.120
-
DOCUMENTGROUP
Reference type forDocumentGroupelements, prefix is "docgroup".- Since:
- 4.0.120
-
MEDIA
Reference type forMediaelements, prefix is "media".- Since:
- 4.0.120
-
MEDIAFOLDER
Reference type forMediaFolderelements, prefix is "mediafolder".- Since:
- 4.0.120
-
SCRIPT
Reference type forScriptelements, prefix is "script".- Since:
- 4.0.120
-
MASTERTEMPLATE
Reference type forMasterTemplateelements, prefix is "template".- Since:
- 4.2.414
-
LINKTEMPLATE
Reference type forLinkTemplateelements, prefix is "linktemplate".- Since:
- 4.2.414
-
TEMPLATE
Reference type forFormatTemplateelements, prefix is "template".- Since:
- 4.0.120
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
typeOf
- Since:
- 4.0.120
-
typeOf
Determine the reference type based on the given uid type.- Parameters:
uidType- The UID type to match.- Returns:
- The matching reference type or
null. - Since:
- 4.2.403
-
prefix
Provides the prefix (including the colon) designating reference types.- Returns:
- The prefix.
- Since:
- 4.0.120
-
type
Provides the type's name.- Returns:
- The type's name.
- Since:
- 4.0.120
-
isTypeOf
Tests, whether the given reference name is of the questioned type.- Parameters:
referenceName- The reference name to test.- Returns:
true, if the reference name matches the type's criteria.- Since:
- 4.0.120
-
strip
Strip the prefix of the questioned type from the given reference name. If the reference name does not match the type's criteria, returnsnull.- Parameters:
referenceName- The reference name to be stripped.- Returns:
- The stripped name or
null. - Since:
- 4.0.120
-
getUidType
- Since:
- 4.2.38
-