Package com.iizix.prop
Class ValueTypeProp
- java.lang.Object
- com.iizix.prop.GProp<java.lang.String>
- com.iizix.prop.StringProp
- com.iizix.prop.ValueTypeProp
 
 
 
- All Implemented Interfaces:
- EventListener,- IGProp<java.lang.String>,- java.lang.Cloneable
 - public class ValueTypeProp extends StringProp The Value Type property for the Value Type as a String, without Value.- Author:
- Christopher Mindus
 
- Field Summary- Fields inherited from class com.iizix.prop.GProp- GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
 - Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
 
 - Constructor Summary- Constructors - Modifier - Constructor - Description - protected- ValueTypeProp()Creates a Value Type property with no name and with a null value.- ValueTypeProp(Atom propertyAtom)Creates a Value Type property with the specified name with a null value.- ValueTypeProp(Atom propertyAtom, Value.Type type)Creates a Value Type property with the specified name and value.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - ValueTypeProp- clone()Clones the Value Type property.- Value.Type- getValueType()Gets the value type.- boolean- setPropValue(java.lang.String type)Sets a new value for this property.- boolean- setValueType(Value.Type type)Sets the Value Type property value.- void- validatePropType(java.lang.Object newValue)Validates that the value to set is of String instance.- Methods inherited from class com.iizix.prop.StringProp- appendPropValue, getPropValue0, getString, getString, getValueClasses, initializeValue, toNativeValue0
 - Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalsTree, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getReferences, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeElement, initializeGElement, initializeGProp, initializeProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPrepare, onPropDispose, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, onReferenceEvent, onRemoteEvent, onVirtualizationCompleted, onVirtualized, paramString, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setCreateRequiredProp, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toElementString, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropValue, verify, verifyHasPropertyItem, virtualize, warning, warning, warning
 
 
- Constructor Detail- ValueTypeProp- protected ValueTypeProp() Creates a Value Type property with no name and with a null value.
 - ValueTypeProp- public ValueTypeProp(Atom propertyAtom) Creates a Value Type property with the specified name with a null value.- Parameters:
- propertyAtom- the property atom.
 
 - ValueTypeProp- public ValueTypeProp(Atom propertyAtom, Value.Type type) Creates a Value Type property with the specified name and value.- Parameters:
- propertyAtom- the property atom.
- type- the Value type, not null.
- Throws:
- java.lang.NullPointerException- If- typeis- null.
 
 
 - Method Detail- clone- public ValueTypeProp clone() Clones the Value Type property.- Overrides:
- clonein class- StringProp
- Returns:
- A new cloned String property.
 
 - setPropValue- public boolean setPropValue(java.lang.String type) throws PropValidateExceptionSets a new value for this property. If any listener is present and the value has changed compare to the last value, the listener is informed.- Overrides:
- setPropValuein class- StringProp
- Parameters:
- type- the new value type.
- Returns:
- boolean true for value has changed, false for same value as current value.
- Throws:
- PropValidateException- When the String Value Type is not correct.
- java.lang.NullPointerException- If- typeis- null.
 
 - setValueType- public boolean setValueType(Value.Type type) Sets the Value Type property value.- Parameters:
- type- The Value Type, not null.
- Returns:
- boolean true for value has changed, false for same value as current value.
- Throws:
- java.lang.NullPointerException- If- typeis- null.
 
 - validatePropType- public void validatePropType(java.lang.Object newValue) throws PropTypeExceptionValidates that the value to set is of String instance.- Note: When this method is called, synchronization is done at the property itself, so no synchronization on the tree should be done. - Specified by:
- validatePropTypein interface- IGProp<java.lang.String>
- Overrides:
- validatePropTypein class- StringProp
- Parameters:
- newValue- The new value to set.
- Throws:
- PropTypeException- when the new value isn't of the correct class.
 
 - getValueType- public Value.Type getValueType() Gets the value type.- Returns:
- The Value Type, or null if not defined.