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 ConstantDescriptionReference type forDocumentGroup
elements, prefix is "docgroup".Reference type forLinkTemplate
elements, prefix is "linktemplate".Reference type forMasterTemplate
elements, prefix is "template".Reference type forMedia
elements, prefix is "media".Reference type forMediaFolder
elements, prefix is "mediafolder".Reference type forPageRef
elements, prefix is "pageref".Reference type forPageRefFolder
elements, prefix is "pagefolder".Reference type forScript
elements, prefix is "script".Reference type forFormatTemplate
elements, prefix is "template". -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests, 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 ReferenceType
typeOf
(IDProvider.UidType uidType) Determine the reference type based on the given uid type.static @Nullable ReferenceType
static ReferenceType
Returns 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 forPageRef
elements, prefix is "pageref".- Since:
- 4.0.120
-
PAGEREFFOLDER
Reference type forPageRefFolder
elements, prefix is "pagefolder".- Since:
- 4.0.120
-
DOCUMENTGROUP
Reference type forDocumentGroup
elements, prefix is "docgroup".- Since:
- 4.0.120
-
MEDIA
Reference type forMedia
elements, prefix is "media".- Since:
- 4.0.120
-
MEDIAFOLDER
Reference type forMediaFolder
elements, prefix is "mediafolder".- Since:
- 4.0.120
-
SCRIPT
Reference type forScript
elements, prefix is "script".- Since:
- 4.0.120
-
MASTERTEMPLATE
Reference type forMasterTemplate
elements, prefix is "template".- Since:
- 4.2.414
-
LINKTEMPLATE
Reference type forLinkTemplate
elements, prefix is "linktemplate".- Since:
- 4.2.414
-
TEMPLATE
Reference type forFormatTemplate
elements, 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
-