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
,java.lang.Cloneable
- Direct Known Subclasses:
JDBCDriverClassNameProperty
@OpenApiAll public class JarEntryProperty extends StringProperty
The property for storing and editing some entry of jar files.
-
-
Field Summary
Fields Modifier and Type Field Description private ClassPathEntriesListProperty
pathProperty
-
Fields inherited from class com.nomagic.magicdraw.properties.Property
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE
-
-
Constructor Summary
Constructors Constructor Description JarEntryProperty()
Default constructor.JarEntryProperty(java.lang.String id, java.lang.String jarEntryName)
The property constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PropertyVisitor v)
Accepts the given visitor.JarEntryProperty
clone()
Clones the property.java.lang.String
getClassType()
Returns property class type.ClassPathEntriesListProperty
getPathProperty()
Get Path Property.void
setPathProperty(ClassPathEntriesListProperty pathProperty)
Set path property-
Methods 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, addPropertyChangeListener, addSource, addSources, areValuesEqual, 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, getValue, hashCode, isEditable, isUndefinedState, isValueCompatible, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, toString
-
-
-
-
Field Detail
-
pathProperty
private ClassPathEntriesListProperty pathProperty
-
-
Constructor Detail
-
JarEntryProperty
public JarEntryProperty()
Default constructor. Value of the property will be null. ID will be empty string.
-
JarEntryProperty
public JarEntryProperty(java.lang.String id, java.lang.String jarEntryName)
The property constructor.- Parameters:
id
- the ID of property.jarEntryName
- the name of jar entry in the jar file.
-
-
Method Detail
-
accept
public void accept(PropertyVisitor v) throws java.lang.Exception
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classStringProperty
- Parameters:
v
- the PropertyVisitor.- Throws:
java.lang.Exception
-
getClassType
public java.lang.String getClassType()
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classStringProperty
- Returns:
- PropertyID.JARENTRY_PROPERTY
- See Also:
PropertyID.JARENTRY_PROPERTY
-
getPathProperty
public ClassPathEntriesListProperty getPathProperty()
Get Path Property.- Returns:
- ClassPathEntriesListProperty
-
setPathProperty
public void setPathProperty(ClassPathEntriesListProperty pathProperty)
Set path property- Parameters:
pathProperty
- Set Path Property.
-
clone
public JarEntryProperty 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.
-
-