public class Protocol extends Object implements Serializable
Reference
model element that defines the type of the referred
artefact and the virtualization process that was applied when creating a
reference.ProtocolMethod
s.Modifier and Type | Field and Description |
---|---|
protected static Encoding |
DEFAULT_ENCODING |
String |
name |
Modifier and Type | Method and Description |
---|---|
Reference |
addParameter(Reference reference,
Parameter parameter) |
Reference |
addParameter(Reference reference,
Resource resource) |
<R> R |
dispatch(ProtocolMethod<R> method,
Reference reference)
ProtocolMethod double-dispatch/visitor protocol type selector. |
Parameter |
getParameter(Reference reference,
int index) |
Reference |
propagateNodeRefMutations(org.alfresco.service.cmr.repository.NodeRef mutatedNodeRef,
Reference reference)
Protocol delegate of
Reference.propagateNodeRefMutations(NodeRef) |
Reference |
replaceParameter(Reference reference,
int index,
Parameter parameter) |
Reference |
replaceParameter(Reference reference,
int index,
String stringParameter) |
String |
toString() |
public final String name
protected static final Encoding DEFAULT_ENCODING
public Protocol(String name)
public Reference replaceParameter(Reference reference, int index, String stringParameter)
public Reference replaceParameter(Reference reference, int index, Parameter parameter)
public <R> R dispatch(ProtocolMethod<R> method, Reference reference) throws ProtocolMethodException
ProtocolMethod
double-dispatch/visitor protocol type selector.
Subclasses should override this method to select the appropriate type
bound method.ProtocolMethod.execute(Protocol, Reference)
default method
implementation.method
- reference
- ProtocolMethodException
public Reference propagateNodeRefMutations(org.alfresco.service.cmr.repository.NodeRef mutatedNodeRef, Reference reference)
Protocol
delegate of
Reference.propagateNodeRefMutations(NodeRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.