| java.lang.Object com.flexive.shared.content.FxData
All known Subclasses: com.flexive.shared.content.FxPropertyData, com.flexive.shared.content.FxGroupData,
FxData | abstract public class FxData implements Serializable(Code) | | Abstract base class for property and group data
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
protected | FxData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, boolean systemInternal) |
POSITION_BOTTOM | final public static int POSITION_BOTTOM(Code) | | |
POSITION_TOP | final public static int POSITION_TOP(Code) | | |
XPathFull | protected String XPathFull(Code) | | XPath with indices
|
indices | protected int[] indices(Code) | | Indices for each element in the XPath
|
xpPrefix | protected String xpPrefix(Code) | | xXPath prefix like "FxType name[@pk=..]"
|
FxData | protected FxData(String xpPrefix, String alias, int index, String xPath, String xPathFull, int[] indices, long assignmentId, FxMultiplicity assignmentMultiplicity, int pos, FxGroupData parent, boolean systemInternal) throws FxInvalidParameterException(Code) | | |
applyIndices | abstract protected void applyIndices()(Code) | | Apply the multiplicity to XPath and children if its a group
|
compact | public void compact()(Code) | | Compact the indices of assignments from the same type closing gaps, etc
|
copy | abstract FxData copy(FxGroupData parent)(Code) | | Create an independent copy of this group or property FxData
Parameters: parent - parent group independent copy |
getAlias | public String getAlias()(Code) | | Getter for the XPath alias (current XPath element name)
alias |
getAssignment | public FxAssignment getAssignment()(Code) | | Get this FxData's associated assignment
FxAssignment |
getAssignmentId | public long getAssignmentId()(Code) | | Get the id of the assignment of this FxData
assignment id |
getAssignmentMultiplicity | public FxMultiplicity getAssignmentMultiplicity()(Code) | | Get the multiplicity of the associated assignment
multiplicity of the associated assignment |
getCreateableElements | public int getCreateableElements()(Code) | | Get the number of (same) FxData elements that may be created within the same hierarchy level
number of (same) FxData elements that may be created within the same hierarchy level |
getIndex | public int getIndex()(Code) | | |
getIndices | public int[] getIndices()(Code) | | Get the indices of this FxData (min, max)
indices of this FxData (min, max) |
getOccurances | public int getOccurances()(Code) | | Return the number of occurances of this assignment in this
FxData instance.
the number of occurances of this assignment in this FxData instance |
getParent | public FxGroupData getParent()(Code) | | Get the parent group of this data element
parent group of this data element |
getPos | public int getPos()(Code) | | Get the position of this data element within its hierarchy level
position of this data element within its hierarchy level |
getRemoveableElements | public int getRemoveableElements()(Code) | | Get the number of elements that may be removed within the same hierarchy level
number of elements that may be removed within the same hierarchy level |
getXPath | public String getXPath()(Code) | | Get the XPath of this FxData
XPath |
getXPathElement | public XPathElement getXPathElement()(Code) | | Get this FxData as XPathElement
XPathElement |
getXPathFull | public String getXPathFull()(Code) | | Get this FxData's XPath with all indices
XPath with all indices |
getXPathPrefix | public String getXPathPrefix()(Code) | | Get the prefix to use for the XPath (Name of the type and primary key)
prefix to use for the XPath |
hashCode | public int hashCode()(Code) | | |
isEmpty | abstract public boolean isEmpty()(Code) | | Is this data empty?
empty |
isGroup | abstract public boolean isGroup()(Code) | | Is this FxData a property or group?
if this FxData is a property or group |
isProperty | abstract public boolean isProperty()(Code) | | Is this FxData a property or group?
if this FxData is a property or group |
isRemoveable | public boolean isRemoveable()(Code) | | Is this data removeable?
if this data is removeable |
isSystemInternal | public boolean isSystemInternal()(Code) | | Is this a system internal property or group?
system internal |
mayCreateMore | public boolean mayCreateMore()(Code) | | May more instances of this element be created within the same hierarchy level
if more instances of this element may be created within the same hierarchy level |
setPos | public FxData setPos(int pos)(Code) | | Set the position of this data element within its hierarchy level
Parameters: pos - position to set this |
|
|