| java.lang.Object com.flexive.shared.content.FxData com.flexive.shared.content.FxGroupData
FxGroupData | public class FxGroupData extends FxData implements Cloneable(Code) | | FxData extension for groups
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | FxGroupData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, List<FxData> data, boolean systemInternal) |
Method Summary | |
public synchronized FxData | addChild(FxData child) | public FxData | addEmptyChild(String xPath, int pos) Add an and FxData entry with the given XPath to this group (must be a direct child of this group, no nesting allowed!). | public void | addGroup(String xPath, FxGroupAssignment fxGroupAssignment, int pos) Add a group entry at the given XPath. | public void | addProperty(String xPath, FxPropertyAssignment assignment, FxValue value, int pos) Add a property at the given XPath location, removing eventually existing properties. | protected void | applyIndices() | public void | compactPositions(boolean includeSubGroups) | public FxData | containsChild(XPathElement check) Check if a child with the same alias and multiplicity that is not empty exists. | protected FxGroupData | copy(FxGroupData parent) | public static FxGroupData | createVirtualRootGroup(String xpPrefix) | public void | explode(boolean explodeChildGroups) | public void | fixChildIndices() | public List<FxData> | getChildren() | public List<String> | getCreateableChildren(boolean includeExisting) Get a list of child FxData instances (as XPath with full indices) that can be created as children for this group. | public FxGroupData | getGroup(String xPath) | public List<FxPropertyData> | getPropertyData(long propertyId, boolean includeEmpty) | protected List<FxReference> | getReferences(boolean includeSubGroups) | public boolean | isEmpty() | public boolean | isGroup() | public boolean | isProperty() | public boolean | isRootGroup() | public void | moveChild(XPathElement xp, int delta) Move a child element identified by its alias and multiplicity by delta positions within this group
If delta is Integer.MAX_VALUE the data will always be placed at the bottom,
Integer.MIN_VALUE will always place it at the top. | public void | removeChild(FxData data) | public void | removeEmptyEntries() | public void | removeEmptyEntries(boolean includeRequired) | public void | replaceChild(XPathElement xpath, FxData data) |
FxGroupData | public FxGroupData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, List<FxData> data, boolean systemInternal) throws FxInvalidParameterException(Code) | | |
addChild | public synchronized FxData addChild(FxData child)(Code) | | Add a child FxData at the correct position
Parameters: child - FxData to add the child |
applyIndices | protected void applyIndices()(Code) | | Apply the multiplicity to XPath and children if its a group
|
compactPositions | public void compactPositions(boolean includeSubGroups)(Code) | | Synchronize positions closing gaps optionally including sub groups
Parameters: includeSubGroups - close gaps for subgroups as well? |
containsChild | public FxData containsChild(XPathElement check)(Code) | | Check if a child with the same alias and multiplicity that is not empty exists.
No elements of subgroups are checked, just direct childs!
Parameters: check - XPathElement to check FxData or null |
explode | public void explode(boolean explodeChildGroups)(Code) | | "Explode" this group by adding all createable assignments at the bottom
Parameters: explodeChildGroups - recursively explode all existing child groups? |
fixChildIndices | public void fixChildIndices()(Code) | | 'Fix' the indices of children after they have been added to reflect the parent groups index in
their XPath
|
getChildren | public List<FxData> getChildren()(Code) | | Get all child entries for this group
child entries |
getCreateableChildren | public List<String> getCreateableChildren(boolean includeExisting)(Code) | | Get a list of child FxData instances (as XPath with full indices) that can be created as children for this group.
Readonly or no access properties or groups will not be returned!
Parameters: includeExisting - include entries for children that already exist but with a new (higher) multiplicity? List of XPaths |
getPropertyData | public List<FxPropertyData> getPropertyData(long propertyId, boolean includeEmpty)(Code) | | Get a list of all FxPropertyData entries that are assigned to propertyId
Parameters: propertyId - the property id requested Parameters: includeEmpty - include empty data instances? list of all FxPropertyData entries that are assigned to propertyId |
getReferences | protected List<FxReference> getReferences(boolean includeSubGroups)(Code) | | Get a list of all FxReference values in this group and optionally all sub groups
Parameters: includeSubGroups - collect FxReferences from sub groups as well? list of all FxReference values in this group and optionally all sub groups |
isEmpty | public boolean isEmpty()(Code) | | |
isGroup | public boolean isGroup()(Code) | | |
isProperty | public boolean isProperty()(Code) | | |
isRootGroup | public boolean isRootGroup()(Code) | | Is this group the root group?
if this group is the root group |
moveChild | public void moveChild(XPathElement xp, int delta)(Code) | | Move a child element identified by its alias and multiplicity by delta positions within this group
If delta is Integer.MAX_VALUE the data will always be placed at the bottom,
Integer.MIN_VALUE will always place it at the top.
Parameters: xp - element to move Parameters: delta - delta positions to move |
removeEmptyEntries | public void removeEmptyEntries(boolean includeRequired)(Code) | | Remove all empty entries of this group
Parameters: includeRequired - include entries that are required? |
|
|