public enum Encodings extends Enum<Encodings>
Reference
encodings.Enum Constant and Description |
---|
HASH
A hash based condensed
Reference string representation. |
PLAIN
Reference string encoding that parses and produces reference
string representations that conform to the following grammar : |
ZERO
A condensed
Reference string representation. |
Modifier and Type | Method and Description |
---|---|
static Encoding |
fromToken(Character token) |
static Encodings |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encodings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encodings PLAIN
Reference
string encoding that parses and produces reference
string representations that conform to the following grammar :
reference := protocol':'resource[':'parameters] protocol := 'virtual'|'node'|'template' resource := repositoryResource | classpathResource repositoryResource := 'repository'':'repositoryLocation repositoryLocation := ('path'':'path)|('node'':'nodeRef) classpathResource := 'classpath'':'path path := string parameters := parameter[':'parameters] parameter := referenceParameter | integerParameter | stringParameter referenceParameter := 'ref'':'reference resourceParameter := 'r'':'resource integerParameter := 'i'':'integer stringParameter := 's'':'string Examples (syntax is correct, but not the semantic): virtual:classpath:/org/alfresco/ virtual:classpath:/org/alfresco/:r:repository:node:workspace:SpacesStore:0029-222-333-444 virtual:classpath:/org/alfresco/:r:repository:node:workspace:SpacesStore:0029-222-333-444:r:repository:path:/Data Dictionary/Virtual Folders/claim.json node:repository:node:workspace:SpacesStore:0029-222-333-444:r:virtual:repository:node:workspace:SpacesStore:0029-122-333-0023
public final Encoding encoding
public static Encodings[] values()
for (Encodings c : Encodings.values()) System.out.println(c);
public static Encodings 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 nullCopyright © 2005–2017 Alfresco Software. All rights reserved.