|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flexive.shared.structure.FxStructureElement
com.flexive.shared.structure.FxProperty
public class FxProperty
property definition
| Field Summary | |
|---|---|
protected ACL |
ACL
|
protected FxDataType |
dataType
|
protected FxValue |
defaultValue
|
protected boolean |
fulltextIndexed
|
protected boolean |
overrideACL
|
protected FxSelectList |
referencedList
|
protected long |
referencedTypeId
|
protected boolean |
systemInternal
|
protected UniqueMode |
uniqueMode
|
| Fields inherited from class com.flexive.shared.structure.FxStructureElement |
|---|
hint, label, multiplicity, name, options, overrideMultiplicity, referenced |
| Constructor Summary | |
|---|---|
FxProperty(long id,
java.lang.String name,
FxMultiplicity multiplicity,
ACL acl,
FxDataType dataType)
|
|
FxProperty(long id,
java.lang.String name,
FxString label,
FxString hint,
boolean systemInternal,
boolean overrideBaseMultiplicity,
FxMultiplicity multiplicity,
boolean overrideACL,
ACL ACL,
FxDataType dataType,
FxValue defaultValue,
boolean fulltextIndexed,
FxType referencedType,
FxSelectList referencedList,
UniqueMode uniqueMode,
java.util.List<FxStructureOption> options)
|
|
| Method Summary | |
|---|---|
FxPropertyEdit |
asEditable()
|
boolean |
equals(java.lang.Object obj)
|
ACL |
getACL()
Get the ACL |
FxDataType |
getDataType()
Get the data type |
FxValue |
getDefaultValue()
Get the default value |
FxValue |
getEmptyValue()
Get an empty FxValue object for this property |
protected FxValue |
getEmptyValue(boolean multiLang)
Get an empty FxValue instance for this property in single or multi language mode. |
protected FxValue |
getEmptyValue(boolean multiLang,
long lang)
Get an empty FxValue instance for this property in single or multi language mode. |
int |
getMaxLength()
Shortcut to get the maximum input length |
int |
getMultiLines()
Get the number of multilines to display or 0 if multiline is not set |
FxSelectList |
getReferencedList()
Get referenced FxSelectList |
FxType |
getReferencedType()
Get referenced FxType |
UniqueMode |
getUniqueMode()
Get the uniqueness mode of this property |
int |
hashCode()
|
boolean |
hasMaxLength()
Shortcut to determine if a max. |
boolean |
hasReferencedList()
Does this property reference a FxSelectList |
boolean |
hasReferencedType()
Does this property references a FxType |
boolean |
isAssignmentSelectOne()
Should this property display references as select list? |
boolean |
isDefaultValueSet()
Returns if the default value of this property is set. |
boolean |
isFulltextIndexed()
Is this property fulltext indexed? |
boolean |
isInOverview()
Does this property appear in overviews? |
boolean |
isMultiLang()
Is this property available in multiple languages? |
boolean |
isMultiLine()
Show as multiple lines in editors? |
boolean |
isReferenceSelectOne()
Should this property display references as select list? |
boolean |
isSearchable()
Can this property be used in the visual query editor (UI hint) |
boolean |
isSystemInternal()
Is this a system-internal property like ID or VERSION? |
boolean |
isUseHTMLEditor()
Use a HTML editor for this property? |
boolean |
mayOverrideACL()
May assignments override this properties ACL? |
boolean |
mayOverrideInOverview()
May assignments override this properties appearance in overviews? |
boolean |
mayOverrideMaxLength()
May assignments override this properties maxLength setting? |
boolean |
mayOverrideMultiLang()
May assignments override this properties multilanguage setting? |
boolean |
mayOverrideMultiLine()
May assignments override this properties multiline setting? |
boolean |
mayOverrideSearchable()
May assignments override this properties searchable flag? |
boolean |
mayOverrideUseHTMLEditor()
May assignments override this properties setting wether to use a HTML editor? |
void |
resolveReferencedType(FxEnvironment environment)
(Internal!) method to resolve referenced type in the second stage of loading the environment |
void |
updateEnvironmentData(FxValue value)
Updates miscellaneous FxValue information that has to be updated from the environment, like select lists for FxSelectOne objects. |
| Methods inherited from class com.flexive.shared.structure.FxStructureElement |
|---|
getHint, getId, getLabel, getMultiplicity, getName, getOption, getOptions, hasOption, isReferenced, mayOverrideBaseMultiplicity, setReferenced |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ACL ACL
protected boolean overrideACL
protected FxDataType dataType
protected boolean fulltextIndexed
protected long referencedTypeId
protected FxSelectList referencedList
protected FxValue defaultValue
protected boolean systemInternal
protected UniqueMode uniqueMode
| Constructor Detail |
|---|
public FxProperty(long id,
java.lang.String name,
FxMultiplicity multiplicity,
ACL acl,
FxDataType dataType)
public FxProperty(long id,
java.lang.String name,
FxString label,
FxString hint,
boolean systemInternal,
boolean overrideBaseMultiplicity,
FxMultiplicity multiplicity,
boolean overrideACL,
ACL ACL,
FxDataType dataType,
FxValue defaultValue,
boolean fulltextIndexed,
FxType referencedType,
FxSelectList referencedList,
UniqueMode uniqueMode,
java.util.List<FxStructureOption> options)
| Method Detail |
|---|
public FxPropertyEdit asEditable()
public boolean mayOverrideACL()
public ACL getACL()
public FxDataType getDataType()
public FxValue getDefaultValue()
public boolean mayOverrideMultiLang()
public boolean isMultiLang()
public boolean isReferenceSelectOne()
public boolean isAssignmentSelectOne()
public boolean mayOverrideSearchable()
public boolean isSearchable()
public boolean isSystemInternal()
public boolean mayOverrideInOverview()
public boolean isInOverview()
public boolean mayOverrideUseHTMLEditor()
public boolean isUseHTMLEditor()
public boolean mayOverrideMultiLine()
public boolean isMultiLine()
public int getMultiLines()
public boolean hasMaxLength()
public int getMaxLength()
public boolean mayOverrideMaxLength()
public boolean isFulltextIndexed()
public boolean hasReferencedType()
public FxType getReferencedType()
public boolean hasReferencedList()
public FxSelectList getReferencedList()
public UniqueMode getUniqueMode()
public void resolveReferencedType(FxEnvironment environment)
environment - reference to the environment to resolve the referenced typepublic FxValue getEmptyValue()
protected FxValue getEmptyValue(boolean multiLang)
multiLang - multi language
public void updateEnvironmentData(FxValue value)
value - the value to be updated
protected FxValue getEmptyValue(boolean multiLang,
long lang)
multiLang - multi languagelang - language to initialize this value for
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isDefaultValueSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||