|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.profiles.NamedObject
com.bowstreet.profiles.ProfileValue
public class ProfileValue
Class that represents a single Value from within a Profile.
Profile
,
Serialized FormField Summary |
---|
Fields inherited from interface com.bowstreet.profiles.IProfileDefines |
---|
CURRENT_CUSTOM_VALUE_PSET, CUSTOM_VALUE_MAP_KEY, DEFAULT, DESCRIPTION, EDIT_STATUS, EDITABLE, EFFECTS_CHILD, emptyIterator, ENTRIES, ENTRY, EXTRA_DATA, FALSE, FINAL_LOCKED, FINAL_LOCKED_STR, INHERITED_FROM, INHERITED_LOCKED, INHERITED_LOCKED_STR, IS_CONTAINER, IS_FINAL, IS_INHERITED, IS_RUNTIME, LAST_MODIFIED, LAST_MODIFIED_BY, MODEL, MODELS, NAME, PARENT, PC_ALREADY_CONVERTED, PC_INVALID_DATA, PC_NO_PROFILE, PC_OK, PROFILE, PROFILE_ATTR, PROFILE_DEF, PROFILE_SET, PROFILE_SET_MAP_PREVIEW_KEY, PROFILED, PROFILES, PROMPT, ROLE, ROLE_SELECTION_CLASS, ROLES, TRUE, TYPE, UI, USE_FULL_NAMES, VALUE, VALUE_CLASS, VALUES |
Constructor Summary | |
---|---|
ProfileValue()
Creates an empty ProfileValue with its name and data value set to null. |
|
ProfileValue(IXml tdValue)
Creates a ProfileValue with its data members set from the specified IXml. |
|
ProfileValue(java.lang.String strName,
java.lang.String data)
Creates a ProfileValue with its name and data value set from the specified inputs. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compare two ProfileValue objects. |
IXml |
getAsIXml(boolean getAll)
Gets the entire ProfileValue as IXml. |
java.lang.String |
getData()
Gets the data value associated with this ProfileValue object. |
int |
getEditable()
This is used by the customizer UI know that this value was created from a final value and can not me modified by the user. |
boolean |
getEffectsChild()
This is used by the customizer UI know that this value effects a child value. |
boolean |
getFinal()
Specifies if this ProfileValue can be changes in sub-profiles. |
boolean |
getInherited()
Gets if this value has been calculated through an inherited profile value. |
java.lang.String |
getInheritedFrom()
Gets the name of the parent if this value has been calculated through an inherited profile value. |
java.lang.String |
getUIData()
Gets the UI data value associated with this ProfileValue object. |
boolean |
isRuntime()
Gets if the entry for this value was specified as runtime data. |
void |
setData(java.lang.String value)
Sets the data value associated with this ProfileValue object. |
void |
setEditable(int editable)
This is used by the customizer UI know that this value was created from a final value and can not me modified by the user. |
void |
setEffectsChild(boolean effectsChild)
This is used by the customizer UI know that this value effects a child value. |
void |
setFinal(boolean isFinal)
Sets if this ProfileValue can be changes in sub-profiles. |
void |
setFromIXml(IXml tdValue)
Sets the entire ProfileValue from a IXml. |
void |
setInherited(boolean isInherited)
Sets if this value has been calculated through an inherited profile value. |
void |
setInheritedFrom(java.lang.String strInheritedFrom)
Sets the name of the parent if this value has been calculated through an inherited profile value. |
void |
setIsRuntime(boolean isRuntime)
Sets if the entry for this value was specified as runtime data. |
void |
setUIData(java.lang.String value)
Sets the UI data value associated with this ProfileValue object. |
void |
update(com.bowstreet.profiles.IXmlDataAccess item)
Updates from an existing ProfileValue. |
Methods inherited from class com.bowstreet.profiles.NamedObject |
---|
clone, getName, setName |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileValue()
public ProfileValue(IXml tdValue) throws ProfileException
tdValue
- The IXml to set data members from.
ProfileException
IXml
The IXml XML should be in the following format: <Value name="Foo">Bar</Value>
public ProfileValue(java.lang.String strName, java.lang.String data)
strName
- The name of this Profile Value.data
- The data for this Profile Value.Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class NamedObject
obj
- The ProfileValue.
public IXml getAsIXml(boolean getAll) throws ProfileException
getAsIXml
in interface com.bowstreet.profiles.IXmlDataAccess
getAll
- true to get all of the calculated inherited data, else false.
ProfileException
IXml
The IXml XML results will be in the following format: <Value name="Foo">Bar</Value>
public java.lang.String getData()
public int getEditable()
public boolean getEffectsChild()
public boolean getFinal()
public boolean getInherited()
public java.lang.String getInheritedFrom()
public java.lang.String getUIData()
public boolean isRuntime()
public void setData(java.lang.String value)
value
- The data as an Object. If this in not a TaggeData object the object's toString() method will be called and stored as Text.public void setEditable(int editable)
editable
- Can be one of the following EDITABLE, FINAL_LOCKED or INHERITED_LOCKED.public void setEffectsChild(boolean effectsChild)
effectsChild
- true if this value effects a child value, else false.public void setFinal(boolean isFinal)
isFinal
- true if this ProfileValue can't be changes in sub-profiles, else false.public void setFromIXml(IXml tdValue) throws ProfileException
setFromIXml
in interface com.bowstreet.profiles.IXmlDataAccess
tdValue
- The IXml representation of a ProfileValue.
ProfileException
IXml
The IXml XML should be in the following format: <Value name="Foo">Bar</Value>
public void setInherited(boolean isInherited)
isInherited
- true to specify this value has been calculated through an inherited profile value, else false.public void setInheritedFrom(java.lang.String strInheritedFrom)
strInheritedFrom
- the name of the profile which the value was inherited from.public void setIsRuntime(boolean isRuntime)
isRuntime
- true if the entry for this value was specified as runtime data, else false.public void setUIData(java.lang.String value)
value
- The data as an Object.public void update(com.bowstreet.profiles.IXmlDataAccess item)
update
in interface com.bowstreet.profiles.IXmlDataAccess
update
in class NamedObject
item
- The IXmlDataAccess, which must be a ProfileValue.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |