public class ValueConverter extends Object
Constructor and Description |
---|
ValueConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
convertValueForJava(Object value) |
Serializable |
convertValueForRepo(Serializable value)
Convert an object from any script wrapper value to a valid repository serializable value.
|
Serializable |
convertValueForScript(ServiceRegistry services,
org.mozilla.javascript.Scriptable scope,
org.alfresco.service.namespace.QName qname,
Serializable value)
Convert an object from any repository serialized value to a valid script object.
|
public Serializable convertValueForScript(ServiceRegistry services, org.mozilla.javascript.Scriptable scope, org.alfresco.service.namespace.QName qname, Serializable value)
services
- Repository Services Registryscope
- Scripting scopeqname
- QName of the property value for conversionvalue
- Property valuepublic Serializable convertValueForRepo(Serializable value)
value
- Value to convert from script wrapper object to repo serializable valueCopyright © 2005–2017 Alfresco Software. All rights reserved.