|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.service.cmr.repository.TransformationOptions
public class TransformationOptions
Tansformation options.
Class containing values of options that are passed to content transformers. These options are used to determine the applicability of a content transformer and also during the transformation process to provide context or parameter values.
| Field Summary | |
|---|---|
static java.lang.String |
OPT_SOURCE_CONTENT_PROPERTY
|
static java.lang.String |
OPT_SOURCE_NODEREF
Option map names to preserve backward compatibility |
static java.lang.String |
OPT_TARGET_CONTENT_PROPERTY
|
static java.lang.String |
OPT_TARGET_NODEREF
|
| Constructor Summary | |
|---|---|
TransformationOptions()
Default construtor |
|
TransformationOptions(java.util.Map optionsMap)
Constrcutor. |
|
TransformationOptions(NodeRef sourceNodeRef,
QName sourceContentProperty,
NodeRef targetNodeRef,
QName targetContentProperty)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
fromMapImpl(java.util.Map optionsMap)
Populates the transformation options from a given Map of value. |
QName |
getSourceContentProperty()
Get the source content property |
NodeRef |
getSourceNodeRef()
Gets the source node reference |
QName |
getTargetContentProperty()
Get the target content property |
NodeRef |
getTargetNodeRef()
Get the target node reference |
void |
setSourceContentProperty(QName sourceContentProperty)
Set the source content property |
void |
setSourceNodeRef(NodeRef sourceNodeRef)
Set the source node reference |
void |
setTargetContentProperty(QName targetContentProperty)
Set the target content property |
void |
setTargetNodeRef(NodeRef targetNodeRef)
Set the taget node reference |
java.util.Map |
toMap()
Converts the transformation options object into an equivalent map |
protected void |
toMapImpl(java.util.Map optionsMap)
Places the values of the transformation options into a Map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPT_SOURCE_NODEREF
public static final java.lang.String OPT_SOURCE_CONTENT_PROPERTY
public static final java.lang.String OPT_TARGET_NODEREF
public static final java.lang.String OPT_TARGET_CONTENT_PROPERTY
| Constructor Detail |
|---|
public TransformationOptions()
public TransformationOptions(NodeRef sourceNodeRef,
QName sourceContentProperty,
NodeRef targetNodeRef,
QName targetContentProperty)
sourceNodeRef - the source node referencesourceContentProperty - the source content propertytargetNodeRef - the target node referencetargetContentProperty - the target content propertypublic TransformationOptions(java.util.Map optionsMap)
optionsMap - options map| Method Detail |
|---|
public void setSourceNodeRef(NodeRef sourceNodeRef)
sourceNodeRef - the source node referencepublic NodeRef getSourceNodeRef()
public void setSourceContentProperty(QName sourceContentProperty)
sourceContentProperty - the source content propertypublic QName getSourceContentProperty()
public void setTargetNodeRef(NodeRef targetNodeRef)
targetNodeRef - the target node referencepublic NodeRef getTargetNodeRef()
public void setTargetContentProperty(QName targetContentProperty)
targetContentProperty - the target content propertypublic QName getTargetContentProperty()
public java.util.Map toMap()
protected void toMapImpl(java.util.Map optionsMap)
optionsMap - the options mapprotected void fromMapImpl(java.util.Map optionsMap)
optionsMap - the options map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||