|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.structure.FxAssignment
com.flexive.shared.structure.FxGroupAssignment
com.flexive.shared.structure.FxGroupAssignmentEdit
public class FxGroupAssignmentEdit
FxGroupAssignment for editing
| Field Summary |
|---|
| Fields inherited from class com.flexive.shared.structure.FxGroupAssignment |
|---|
group, mode |
| Fields inherited from class com.flexive.shared.structure.FxAssignment |
|---|
alias, baseAssignment, defaultMultCalc, defaultMultiplicity, enabled, hint, label, multiplicity, NO_BASE, NO_PARENT, options, parentGroupAssignment, position, POSITION_BOTTOM, ROOT_BASE, scriptMapping, TYPE_GROUP, TYPE_PROPERTY, XPath |
| Constructor Summary | |
|---|---|
FxGroupAssignmentEdit(FxGroupAssignment ga)
Ctor to make a FxGroupAssignment editable |
|
| Method Summary | |
|---|---|
void |
clearDerivedUse()
Remove any references of derived usage |
void |
clearOption(java.lang.String key)
Clear an option entry |
static FxGroupAssignmentEdit |
createNew(FxGroupAssignment ga,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
Create a new FxGroupAssignmentEdit from an existing FxGroupAssignment as a new one for a given type with a new alias and a given parentXPath |
static FxGroupAssignmentEdit |
createNew(FxGroupAssignment ga,
FxType type,
java.lang.String alias,
java.lang.String parentXPath,
FxAssignment parent)
Create a new FxGroupAssignmentEdit from an existing FxGroupAssignment as a new one for a given type with a new alias and a given parentXPath |
FxGroupEdit |
getGroupEdit()
Returns the group of this assignment as editable. |
boolean |
isNew()
Is this a new instance? |
FxGroupAssignmentEdit |
setAlias(java.lang.String alias)
Set a new alias, will affect the xpath as well |
FxGroupAssignmentEdit |
setDefaultMultiplicity(int defaultMultiplicity)
Set the default multiplicity (the number of elements created upon initialization) |
FxGroupAssignmentEdit |
setEnabled(boolean enabled)
Set the enabled flag |
FxGroupAssignmentEdit |
setHint(FxString hint)
Set the hint message |
FxGroupAssignmentEdit |
setLabel(FxString label)
Set the label |
FxGroupAssignmentEdit |
setMode(GroupMode mode)
Set the GroupMode for this group assignment (any-of, one-of) |
FxGroupAssignmentEdit |
setMultiplicity(FxMultiplicity multiplicity)
Set the multiplicity of this assignment. |
FxGroupAssignmentEdit |
setOption(java.lang.String key,
boolean value)
Set a boolean option with defaults of overridable & isInherited == true |
FxGroupAssignmentEdit |
setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
boolean value)
Set a boolean option |
FxGroupAssignmentEdit |
setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
java.lang.String value)
Set an option |
FxGroupAssignmentEdit |
setOption(java.lang.String key,
java.lang.String value)
Set an option with defaults of overridable & isInherited == true |
void |
setOptions(java.util.List<FxStructureOption> options)
Assign options |
void |
setParentGroupAssignment(FxGroupAssignment parent)
Sets the parent group assignment. |
FxGroupAssignmentEdit |
setPosition(int position)
Set the new absolute position |
FxGroupAssignmentEdit |
setXPath(java.lang.String XPath)
Set the XPath, will affect the alias as well |
| Methods inherited from class com.flexive.shared.structure.FxGroupAssignment |
|---|
addAssignment, asEditable, createEmptyData, createEmptyData, createRandomData, getAllChildAssignments, getAllProperties, getAssignedGroups, getAssignedProperties, getAssignment, getAssignments, getDerivedAssignments, getGroup, getMode, getMultiplicity, getOption, hasMandatorySubAssignments, resolveParentDependencies, save |
| Methods inherited from class com.flexive.shared.structure.FxAssignment |
|---|
_setSystemInternal, compareTo, createEmptyData, equals, getAlias, getAssignedType, getAssignedTypeId, getBaseAssignmentId, getDefaultMultiplicity, getDisplayLabel, getDisplayName, getDisplayName, getHint, getId, getLabel, getOptions, getParentGroupAssignment, getPosition, getScriptMapping, getXPath, hashCode, hasOption, hasParentGroupAssignment, hasScriptMapping, hasScriptMappings, isDerivedAssignment, isDerivedFrom, isEnabled, isSystemInternal, isValid, resolveDependencies, resolvePreloadDependencies, resolveReferences, sort, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FxGroupAssignmentEdit(FxGroupAssignment ga)
ga - FxGroupAssignment to make editable| Method Detail |
|---|
public boolean isNew()
public FxGroupAssignmentEdit setEnabled(boolean enabled)
enabled - enabled flag
public FxGroupAssignmentEdit setMultiplicity(FxMultiplicity multiplicity)
throws FxInvalidParameterException
multiplicity - new multiplicity
FxInvalidParameterException - on errorspublic FxGroupAssignmentEdit setDefaultMultiplicity(int defaultMultiplicity)
defaultMultiplicity - the default multiplicity
public FxGroupAssignmentEdit setPosition(int position)
position - new absolute position
public FxGroupAssignmentEdit setAlias(java.lang.String alias)
throws FxInvalidParameterException
alias - new alias
FxInvalidParameterException - on errors
public FxGroupAssignmentEdit setXPath(java.lang.String XPath)
throws FxInvalidParameterException
XPath - new XPath
FxInvalidParameterException - on errorspublic FxGroupAssignmentEdit setLabel(FxString label)
label - label
public FxGroupAssignmentEdit setHint(FxString hint)
hint - hint message
public FxGroupAssignmentEdit setMode(GroupMode mode)
mode - group mode
public static FxGroupAssignmentEdit createNew(FxGroupAssignment ga,
FxType type,
java.lang.String alias,
java.lang.String parentXPath,
FxAssignment parent)
throws FxNotFoundException,
FxInvalidParameterException
ga - original group assignmenttype - type to assign italias - new aliasparentXPath - parent XPath within the type to assignparent - optional parent assignment if already known
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalid
public static FxGroupAssignmentEdit createNew(FxGroupAssignment ga,
FxType type,
java.lang.String alias,
java.lang.String parentXPath)
throws FxNotFoundException,
FxInvalidParameterException
ga - original group assignmenttype - type to assign italias - new aliasparentXPath - parent XPath within the type to assign
FxNotFoundException - if parentXPath is invalid
FxInvalidParameterException - if parentXPath is invalidpublic void setParentGroupAssignment(FxGroupAssignment parent)
parent - the parent group assignment.public void clearDerivedUse()
public FxGroupAssignmentEdit setOption(java.lang.String key,
java.lang.String value)
throws FxInvalidParameterException
key - option keyvalue - value of the option
FxInvalidParameterException - if the property does not allow overriding
public FxGroupAssignmentEdit setOption(java.lang.String key,
boolean value)
throws FxInvalidParameterException
key - option keyvalue - value of the option
FxInvalidParameterException - if the property does not allow overriding
public FxGroupAssignmentEdit setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
java.lang.String value)
throws FxInvalidParameterException
key - option keyoverridable - flag to indicate that derived assignments may override this optionisInherited - flag to indicate that derived assignments inherit this optionvalue - value of the option
FxInvalidParameterException - on errors
public FxGroupAssignmentEdit setOption(java.lang.String key,
boolean overridable,
boolean isInherited,
boolean value)
throws FxInvalidParameterException
key - option keyoverridable - flag to indicate that derived assignments may override this optionisInherited - flag to indicate that derived assignments inherit this optionvalue - value of the option
FxInvalidParameterException - on errorspublic void clearOption(java.lang.String key)
key - option namepublic void setOptions(java.util.List<FxStructureOption> options)
options - options to assignpublic FxGroupEdit getGroupEdit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||