Package com.nomagic.magicdraw.properties
Class ClassPathEntriesListProperty
java.lang.Object
com.nomagic.magicdraw.properties.Property
com.nomagic.magicdraw.properties.ListProperty
com.nomagic.magicdraw.properties.ClassPathEntriesListProperty
- All Implemented Interfaces:
PropertyVisitorAcceptor,Cloneable
ClassPathEntriesListProperty represents a property for storing and
editing entries of the classpath.-
Field Summary
Fields inherited from class com.nomagic.magicdraw.properties.Property
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, TO, UNDEFINED, VALUE, VALUE_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionCreates and initializes a newClassPathEntriesListPropertyobject.ClassPathEntriesListProperty(String id, Object[] value, boolean allowFiles) Creates and initializes a newClassPathEntriesListPropertyobject from specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(PropertyVisitor visitor) Accepts the given visitor.protected booleanareValuesEqual(Object oldValue, Object newValue) Check if values are equal before setting new value.clone()Clones the property.Returns a class type of the property.File[]getFiles()Returns an array of files.String[]Returns value's string representation.booleanvoidsetAllowsFiles(boolean allow) Methods inherited from class com.nomagic.magicdraw.properties.ListProperty
getValue, setValueMethods inherited from class com.nomagic.magicdraw.properties.Property
_getValue, _isFrozen, _setFrozen, _setValue, addAnnotation, addPropertyChangeListener, addSource, addSources, areEqualByValue, checkFrozen, checkFrozen, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getAnnotation, getAnnotations, getDescription, getDescriptionID, getFirstElementFromSources, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSortableValueStringRepresentation, getSourceAsElement, getSources, getSourcesAsStream, getUndefinedString, getUndefinedString, hashCode, isEditable, isUndefinedState, isValueCompatible, removeAnnotation, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setAnnotations, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
-
Constructor Details
-
ClassPathEntriesListProperty
public ClassPathEntriesListProperty()Creates and initializes a newClassPathEntriesListPropertyobject. -
ClassPathEntriesListProperty
Creates and initializes a newClassPathEntriesListPropertyobject from specified parameters.- Parameters:
id- - id of the propertyvalue- - a value of the property
-
-
Method Details
-
getClassType
Returns a class type of the property.- Specified by:
getClassTypein interfacePropertyVisitorAcceptor- Overrides:
getClassTypein classListProperty- Returns:
- PropertyID.CLASS_PATH_LIST_PROPERTY
- See Also:
-
accept
Description copied from class:ListPropertyAccepts the given visitor.- Specified by:
acceptin interfacePropertyVisitorAcceptor- Overrides:
acceptin classListProperty- Parameters:
visitor- the PropertyVisitor.- Throws:
Exception- See Also:
-
getFiles
Returns an array of files.- Returns:
- an array of files.
-
getFilesPaths
-
getFileProperties
-
isAllowsFiles
public boolean isAllowsFiles() -
setAllowsFiles
public void setAllowsFiles(boolean allow) -
getValueStringRepresentation
Description copied from class:PropertyReturns value's string representation.- Overrides:
getValueStringRepresentationin classListProperty- Returns:
- string "null" if property does not have value;
value. toString()if property has value.
-
areValuesEqual
Description copied from class:PropertyCheck if values are equal before setting new value. If values are equal value is not changed.- Overrides:
areValuesEqualin classProperty- Parameters:
oldValue- current value.newValue- new value.- Returns:
- true if values are equal.
-
clone
Description copied from class:PropertyClones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.- Overrides:
clonein classListProperty- Returns:
- the cloned property.
-