Package org.alfresco.repo.virtual.ref
Class ZeroReferenceParser
- java.lang.Object
-
- org.alfresco.repo.virtual.ref.ZeroReferenceParser
-
- All Implemented Interfaces:
java.io.Serializable,ReferenceParser,ZeroEncoding
public class ZeroReferenceParser extends java.lang.Object implements ReferenceParser, ZeroEncoding
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.virtual.ref.ReferenceParser
ReferenceParser.Cursor
-
-
Field Summary
-
Fields inherited from interface org.alfresco.repo.virtual.ref.ZeroEncoding
CLASSPATH_RESOURCE_CODE, DELIMITER, NODE_CODE, NODE_PROTOCOL_CODE, PATH_CODE, REFERENCE_DELIMITER, REFERENCE_PARAMETER, REPOSITORY_RESOURCE_CODE, RESOURCE_PARAMETER, STRING_PARAMETER, VANILLA_PROTOCOL_CODE, VIRTUAL_PROTOCOL_CODE
-
-
Constructor Summary
Constructors Constructor Description ZeroReferenceParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Referenceparse(java.lang.String referenceString)
-
-
-
Method Detail
-
parse
public Reference parse(java.lang.String referenceString) throws ReferenceParseException
Parses a String representation of aReferenceand returns the correspondingReference. Parsing is done with the help of theReferenceParser.Cursorclass, which keeps track of the String elements that make up theReferenceString representation. This method instantiates and initiates the cursor and checks the validity of the referenceString and relies upon theparseReference(org.alfresco.repo.virtual.ref.ReferenceParser.Cursor)for the actual parsing.- Specified by:
parsein interfaceReferenceParser- Parameters:
referenceString- the String representation of aReference.- Returns:
- the newly created
Reference - Throws:
ReferenceParseException
-
-