public enum ReferenceType extends Enum<ReferenceType>
Enum Constant and Description |
---|
DOCUMENTGROUP
Reference type for
DocumentGroup elements, prefix is "docgroup". |
LINKTEMPLATE
Reference type for
LinkTemplate elements, prefix is "linktemplate". |
MASTERTEMPLATE
Reference type for
MasterTemplate elements, prefix is "template". |
MEDIA
Reference type for
Media elements, prefix is "media". |
MEDIAFOLDER
Reference type for
MediaFolder elements, prefix is "mediafolder". |
PAGEREF
Reference type for
PageRef elements, prefix is "pageref". |
PAGEREFFOLDER
Reference type for
PageRefFolder elements, prefix is "pagefolder". |
SCRIPT
Reference type for
Script elements, prefix is "script". |
TEMPLATE
Reference type for
FormatTemplate elements, prefix is "template". |
Modifier and Type | Method and Description |
---|---|
IDProvider.UidType |
getUidType() |
boolean |
isTypeOf(String referenceName)
Tests, whether the given reference name is of the questioned type.
|
String |
prefix()
Provides the prefix (including the colon) designating reference types.
|
String |
strip(String referenceName)
Strip the prefix of the questioned type from the given reference name.
|
String |
type()
Provides the type's name.
|
static ReferenceType |
typeOf(IDProvider.UidType uidType)
Determine the reference type based on the given uid type.
|
static ReferenceType |
typeOf(String referenceOrTypeName) |
static ReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceType PAGEREF
PageRef
elements, prefix is "pageref".public static final ReferenceType PAGEREFFOLDER
PageRefFolder
elements, prefix is "pagefolder".public static final ReferenceType DOCUMENTGROUP
DocumentGroup
elements, prefix is "docgroup".public static final ReferenceType MEDIA
Media
elements, prefix is "media".public static final ReferenceType MEDIAFOLDER
MediaFolder
elements, prefix is "mediafolder".public static final ReferenceType SCRIPT
Script
elements, prefix is "script".public static final ReferenceType MASTERTEMPLATE
MasterTemplate
elements, prefix is "template".public static final ReferenceType LINKTEMPLATE
LinkTemplate
elements, prefix is "linktemplate".public static final ReferenceType TEMPLATE
FormatTemplate
elements, prefix is "template".public static ReferenceType[] values()
for (ReferenceType c : ReferenceType.values()) System.out.println(c);
public static ReferenceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null@Nullable public static ReferenceType typeOf(String referenceOrTypeName)
@Nullable public static ReferenceType typeOf(IDProvider.UidType uidType)
uidType
- The UID type to match.null
.public String prefix()
public String type()
public boolean isTypeOf(String referenceName)
referenceName
- The reference name to test.true
, if the reference name matches the type's criteria.public String strip(String referenceName)
null
.referenceName
- The reference name to be stripped.null
.public IDProvider.UidType getUidType()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500