|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.structure.FxStructureElement
public abstract class FxStructureElement
Abstract base class for FxGroup and FxProperty
| Field Summary | |
|---|---|
protected FxString |
hint
|
protected FxString |
label
|
protected FxMultiplicity |
multiplicity
|
protected java.lang.String |
name
|
protected java.util.List<FxStructureOption> |
options
|
protected boolean |
overrideMultiplicity
|
protected boolean |
referenced
|
| Constructor Summary | |
|---|---|
protected |
FxStructureElement(long id,
java.lang.String name,
FxString label,
FxString hint,
boolean overrideMultiplicity,
FxMultiplicity multiplicity,
java.util.List<FxStructureOption> options)
Constructor |
| Method Summary | |
|---|---|
FxString |
getHint()
Get hint text for UI |
long |
getId()
Internal id of this element |
FxString |
getLabel()
Multilingual label of this element |
FxMultiplicity |
getMultiplicity()
(Base) multiplicity of this element, may be overriden in assignment depending on mayOverrideMultiplicity |
java.lang.String |
getName()
Name of this element (may be overriden with an alias) |
FxStructureOption |
getOption(java.lang.String key)
Get an option entry for the given key, if the key is invalid or not found a FxStructureOption object
will be returned with set set to false, overrideable set to false and value
set to an empty String. |
java.util.List<FxStructureOption> |
getOptions()
Get a (unmodifiable) list of all options set for this group |
boolean |
hasOption(java.lang.String key)
Check if an option is set for the requested key |
boolean |
isReferenced()
Is this element referenced? (=in use) |
boolean |
mayOverrideBaseMultiplicity()
Indicate if assignments of this element may override the default multiplicity |
void |
setReferenced(boolean referenced)
Set if this element is referenced (not to be called 'by hand'!!!) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected FxString label
protected FxString hint
protected FxMultiplicity multiplicity
protected boolean overrideMultiplicity
protected boolean referenced
protected java.util.List<FxStructureOption> options
| Constructor Detail |
|---|
protected FxStructureElement(long id,
java.lang.String name,
FxString label,
FxString hint,
boolean overrideMultiplicity,
FxMultiplicity multiplicity,
java.util.List<FxStructureOption> options)
id - idname - namelabel - labelhint - hintoverrideMultiplicity - may override base multiplicitymultiplicity - the multiplicityoptions - options| Method Detail |
|---|
public long getId()
getId in interface SelectableObjectpublic java.lang.String getName()
getName in interface SelectableObjectWithNamepublic FxString getLabel()
public FxString getHint()
public boolean mayOverrideBaseMultiplicity()
public FxMultiplicity getMultiplicity()
mayOverrideMultiplicity
mayOverrideBaseMultiplicity()public boolean isReferenced()
public void setReferenced(boolean referenced)
referenced - is referencedpublic boolean hasOption(java.lang.String key)
key - option key
public FxStructureOption getOption(java.lang.String key)
FxStructureOption object
will be returned with set set to false, overrideable set to false and value
set to an empty String.
key - option key
public java.util.List<FxStructureOption> getOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||