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