@OpenApiAll public class ClassPathEntriesListProperty extends ListProperty
ClassPathEntriesListProperty
represents a property for storing and
editing entries of the classpath.DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
Constructor and Description |
---|
ClassPathEntriesListProperty()
Creates and initializes a new
ClassPathEntriesListProperty object. |
ClassPathEntriesListProperty(java.lang.String id,
java.lang.Object[] value,
boolean allowFiles)
Creates and initializes a new
ClassPathEntriesListProperty object
from specified parameters. |
Modifier and Type | Method and Description |
---|---|
void |
accept(PropertyVisitor visitor)
Accepts the given visitor.
|
protected boolean |
areValuesEqual(java.lang.Object oldValue,
java.lang.Object newValue)
Check if values are equal before setting new value.
|
ClassPathEntriesListProperty |
clone()
Clones the property.
|
java.lang.String |
getClassType()
Returns a class type of the property.
|
FileProperty[] |
getFileProperties() |
java.io.File[] |
getFiles()
Returns an array of files.
|
java.lang.String[] |
getFilesPaths() |
java.lang.String |
getValueStringRepresentation()
Returns value's string representation.
|
boolean |
isAllowsFiles() |
void |
setAllowsFiles(boolean allow) |
getValue, setValue
_getValue, _isFrozen, _setFrozen, _setValue, addPropertyChangeListener, addSource, addSources, checkFrozen, checkFrozen, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getFirstElementFromSources, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSourceAsElement, getSources, getSourcesAsStream, getUndefinedString, getUndefinedString, hashCode, isEditable, isUndefinedState, isValueCompatible, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
public ClassPathEntriesListProperty()
ClassPathEntriesListProperty
object.public ClassPathEntriesListProperty(java.lang.String id, @CheckForNull java.lang.Object[] value, boolean allowFiles)
ClassPathEntriesListProperty
object
from specified parameters.id
- - id of the propertyvalue
- - a value of the propertypublic java.lang.String getClassType()
getClassType
in interface PropertyVisitorAcceptor
getClassType
in class ListProperty
PropertyID.CLASS_PATH_LIST_PROPERTY
public void accept(PropertyVisitor visitor) throws java.lang.Exception
ListProperty
accept
in interface PropertyVisitorAcceptor
accept
in class ListProperty
visitor
- the PropertyVisitor.java.lang.Exception
PropertyVisitorAcceptor.accept(com.nomagic.magicdraw.properties.PropertyVisitor)
@CheckForNull public java.io.File[] getFiles()
@CheckForNull public java.lang.String[] getFilesPaths()
public FileProperty[] getFileProperties()
public boolean isAllowsFiles()
public void setAllowsFiles(boolean allow)
public java.lang.String getValueStringRepresentation()
Property
getValueStringRepresentation
in class ListProperty
value.
toString()
if property has value.protected boolean areValuesEqual(java.lang.Object oldValue, java.lang.Object newValue)
Property
areValuesEqual
in class Property
oldValue
- current value.newValue
- new value.public ClassPathEntriesListProperty clone()
Property
clone
in class ListProperty