Package org.alfresco.repo.virtual.ref
Class ResourceParameter
- java.lang.Object
-
- org.alfresco.repo.virtual.ref.ValueParameter<Resource>
-
- org.alfresco.repo.virtual.ref.ResourceParameter
-
- All Implemented Interfaces:
Parameter
public class ResourceParameter extends ValueParameter<Resource>
Helper class that has oneResourceas a value attribute, value that can be retrieved and used in virtualization process.It also provides the possibility of converting the value attribute into a string representation according to
Encodingsdefinition, using providedStringifierobjects.
-
-
Constructor Summary
Constructors Constructor Description ResourceParameter(Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringstringify(Stringifier stringifier)Converts the value attribute into a string representation according toEncodingsdefinition, using providedStringifierparameter.-
Methods inherited from class org.alfresco.repo.virtual.ref.ValueParameter
equals, getValue, hashCode
-
-
-
-
Constructor Detail
-
ResourceParameter
public ResourceParameter(Resource resource)
-
-
Method Detail
-
stringify
public java.lang.String stringify(Stringifier stringifier) throws ReferenceEncodingException
Description copied from interface:ParameterConverts the value attribute into a string representation according toEncodingsdefinition, using providedStringifierparameter.- Returns:
- the string representation of this parameter as provided by the
given
Stringifier - Throws:
ReferenceEncodingException
-
-