Package com.nomagic.magicdraw.properties
Class JarEntryProperty
java.lang.Object
com.nomagic.magicdraw.properties.Property
com.nomagic.magicdraw.properties.StringProperty
com.nomagic.magicdraw.properties.JarEntryProperty
- All Implemented Interfaces:
PropertyVisitorAcceptor
,Cloneable
- Direct Known Subclasses:
JDBCDriverClassNameProperty
The property for storing and editing some entry of jar files.
-
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
ConstructorDescriptionDefault constructor.JarEntryProperty
(String id, String jarEntryName) The property constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts the given visitor.clone()
Clones the property.Returns property class type.Get Path Property.void
setPathProperty
(ClassPathEntriesListProperty pathProperty) Set path propertyMethods inherited from class com.nomagic.magicdraw.properties.StringProperty
getString, getValueStringRepresentation, isMultiline, setMultiline, setValue
Methods inherited from class com.nomagic.magicdraw.properties.Property
_getValue, _isFrozen, _setFrozen, _setValue, addAnnotation, addPropertyChangeListener, addSource, addSources, areEqualByValue, areValuesEqual, 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, getValue, hashCode, isEditable, isUndefinedState, isValueCompatible, removeAnnotation, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setAnnotations, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
-
Constructor Details
-
JarEntryProperty
public JarEntryProperty()Default constructor. Value of the property will be null. ID will be empty string. -
JarEntryProperty
The property constructor.- Parameters:
id
- the ID of property.jarEntryName
- the name of jar entry in the jar file.
-
-
Method Details
-
accept
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classStringProperty
- Parameters:
v
- the PropertyVisitor.- Throws:
Exception
-
getClassType
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classStringProperty
- Returns:
- PropertyID.JARENTRY_PROPERTY
- See Also:
-
getPathProperty
Get Path Property.- Returns:
- ClassPathEntriesListProperty
-
setPathProperty
Set path property- Parameters:
pathProperty
- Set Path Property.
-
clone
Description copied from class:Property
Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.- Overrides:
clone
in classStringProperty
- Returns:
- the cloned property.
-