Package com.iizix.prop
Class AssetReferences
- java.lang.Object
- com.iizix.prop.GProp<java.lang.String>
- com.iizix.prop.StringProp
- com.iizix.prop.AssetReferences
 
 
 
- All Implemented Interfaces:
- EventListener,- ICircularRetargetParent,- IGProp<java.lang.String>,- java.lang.Cloneable
 - public class AssetReferences extends StringProp implements ICircularRetargetParent The Asset References property class hold the references to zero or more FileURIPropCnr property containers. The reference names are separated by comma in the string.- 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- AssetReferences()Creates a Styles Reference property with no name and with a null value.- AssetReferences(Atom propertyAtom)Creates a Styles Reference property with the specified name with a null value.- AssetReferences(Atom propertyAtom, java.lang.String newValue)Creates a Styles Reference property with the specified name and value.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected boolean- equalsErrors(PropError pe1, PropError pe2, int how)Processes error property verification.- protected void- fireChanged()Call this method to inform a listener.- FileURIPropCnr[]- getAllFiles()Gets the Styles associates with the references.- int- getReferences(java.util.List<Reference> references)Gets the references of this property top others.- void- onEventSelf(GEvent event)Called when a property event is send to this property.- protected void- onProjectNameChanged(ProjectNameEvent event)Called when a project name has been changed.- protected void- onPropDispose()Property disposed of: dispose of reference.- protected void- onReferenceEvent(ResolveReferencesEvent event)Called to perform reference resolving.- Methods inherited from class com.iizix.prop.StringProp- appendPropValue, clone, getPropValue0, getString, getString, getValueClasses, initializeValue, setPropValue, toNativeValue0, validatePropType
 - Methods inherited from class com.iizix.prop.GProp- addPropError, addPropListener, convertPropError, dispose, equals, equals, 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, 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, onPrepare, onPropInvalidateCache, onPropParentChanged, onPropTreeInitialized, onPropValueSet, 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
 - Methods inherited from class java.lang.Object- getClass, hashCode, notify, notifyAll, wait, wait, wait
 - Methods inherited from interface com.iizix.prop.ICircularRetargetParent- isCircularRetargetParent
 
 
- Constructor Detail- AssetReferences- protected AssetReferences() Creates a Styles Reference property with no name and with a null value.
 - AssetReferences- public AssetReferences(Atom propertyAtom) Creates a Styles Reference property with the specified name with a null value.- Parameters:
- propertyAtom- the property atom.
 
 - AssetReferences- public AssetReferences(Atom propertyAtom, java.lang.String newValue) throws PropValidateException Creates a Styles Reference property with the specified name and value.- Parameters:
- propertyAtom- the property atom.
- newValue- the new string value for the property.
- Throws:
- PropValidateException- When the constraints are not met.
 
 
 - Method Detail- onPropDispose- protected void onPropDispose() Property disposed of: dispose of reference.- Overrides:
- onPropDisposein class- GProp<java.lang.String>
 
 - equalsErrors- protected boolean equalsErrors(PropError pe1, PropError pe2, int how) Processes error property verification. The default processing is to verify the two error properties- pe1and- pe2for equality if- includeErrorsis 0 or 1, and returns true if the value is 2=no comparison with error properties.- Override to verify property errors for reference properties. - Overrides:
- equalsErrorsin class- GProp<java.lang.String>
- Parameters:
- pe1- The first error property, may be null.
- pe2- The second error property, may be null.
- how- Flags EQC_* values for equal checking.
- Returns:
- Equality flag depending on includeErrorsvalue.
 
 - getReferences- public int getReferences(java.util.List<Reference> references) Gets the references of this property top others. This method is typically used in the Designer to search for circular references during verification.- Specified by:
- getReferencesin interface- IGProp<java.lang.String>
- Overrides:
- getReferencesin class- GProp<java.lang.String>
- Parameters:
- references- The references array is filled in by this method.
- Returns:
- The count of references added.
 
 - onEventSelf- public void onEventSelf(GEvent event) Called when a property event is send to this property.- A subclass can override this method to perform appropriate processing and is not required to call - super.onEventSelf(e).- Specified by:
- onEventSelfin interface- IGProp<java.lang.String>
- Overrides:
- onEventSelfin class- GProp<java.lang.String>
- Parameters:
- event- The property event.
 
 - onReferenceEvent- protected void onReferenceEvent(ResolveReferencesEvent event) Called to perform reference resolving. A property should override this method if it needs to perform reference resolving and validation.- Subclasses override this method and only subclasses extending - PropCnrneeds to call- super.onReferenceEvent(ResolveReferenceEvent event).- Overrides:
- onReferenceEventin class- GProp<java.lang.String>
- Parameters:
- event- The resolve references event.
 
 - onProjectNameChanged- protected void onProjectNameChanged(ProjectNameEvent event) Called when a project name has been changed.- Parameters:
- event- The project name event.
 
 - getAllFiles- public FileURIPropCnr[] getAllFiles() Gets the Styles associates with the references. The array may contain null members in which case that reference is not resolved.- Returns:
- The array returned is never null, i.e. Styles [0] if no references are present.
 
 - fireChanged- protected void fireChanged() Call this method to inform a listener.