Package com.nomagic.magicdraw.properties
Class JDBCDriverClassNameProperty
- java.lang.Object
-
- com.nomagic.magicdraw.properties.Property
-
- com.nomagic.magicdraw.properties.StringProperty
-
- com.nomagic.magicdraw.properties.JarEntryProperty
-
- com.nomagic.magicdraw.properties.JDBCDriverClassNameProperty
-
- All Implemented Interfaces:
PropertyVisitorAcceptor
,java.lang.Cloneable
@OpenApiAll public class JDBCDriverClassNameProperty extends JarEntryProperty
The property for storing and editing a class name of a JDBC driver.
-
-
Field Summary
-
Fields inherited from class com.nomagic.magicdraw.properties.Property
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE, VALUE_ANNOTATIONS
-
-
Constructor Summary
Constructors Constructor Description JDBCDriverClassNameProperty()
Default constructor.JDBCDriverClassNameProperty(java.lang.String id, java.lang.String driverClassName)
Creates and initializes a new instance ofJDBCDriverClassNameProperty
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PropertyVisitor v)
Accepts the given visitor.JDBCDriverClassNameProperty
clone()
Clones the property.java.lang.String
getClassType()
Returns property class type.-
Methods inherited from class com.nomagic.magicdraw.properties.JarEntryProperty
getPathProperty, setPathProperty
-
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, 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 Detail
-
JDBCDriverClassNameProperty
public JDBCDriverClassNameProperty()
Default constructor. Value of the property will be null. ID will be empty string.
-
JDBCDriverClassNameProperty
public JDBCDriverClassNameProperty(java.lang.String id, java.lang.String driverClassName)
Creates and initializes a new instance ofJDBCDriverClassNameProperty
class.- Parameters:
id
- the ID of property.driverClassName
- the name of class of JDBC driver.
-
-
Method Detail
-
getClassType
public java.lang.String getClassType()
Returns property class type.- Specified by:
getClassType
in interfacePropertyVisitorAcceptor
- Overrides:
getClassType
in classJarEntryProperty
- Returns:
- PropertyID.JDBC_DRIVER_CLASS_NAME_PROPERTY
- See Also:
PropertyID.JDBC_DRIVER_CLASS_NAME_PROPERTY
-
accept
public void accept(PropertyVisitor v) throws java.lang.Exception
Description copied from class:JarEntryProperty
Accepts the given visitor.- Specified by:
accept
in interfacePropertyVisitorAcceptor
- Overrides:
accept
in classJarEntryProperty
- Parameters:
v
- the PropertyVisitor.- Throws:
java.lang.Exception
-
clone
public JDBCDriverClassNameProperty 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 classJarEntryProperty
- Returns:
- the cloned property.
-
-