Package com.nomagic.magicdraw.properties
Class DateTimeProperty
- java.lang.Object
-
- com.nomagic.magicdraw.properties.Property
-
- com.nomagic.magicdraw.properties.StringProperty
-
- com.nomagic.magicdraw.properties.DateTimeProperty
-
- All Implemented Interfaces:
PropertyVisitorAcceptor,java.lang.Cloneable
@OpenApiAll public class DateTimeProperty extends StringProperty
-
-
Field Summary
Fields Modifier and Type Field Description private Typetype-
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 DateTimeProperty()Default constructor.DateTimeProperty(java.lang.String id, java.lang.Object value, boolean multiline, Type type)Deprecated.DateTimeProperty(java.lang.String id, java.lang.String value, boolean multiline, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(PropertyVisitor v)Accepts the given visitor.DateTimePropertyclone()Clones the property.java.lang.StringgetClassType()Returns property class type.TypegetType()Returns type of 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, areEqualByValue, 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
-
type
@CheckForNull private final Type type
-
-
Constructor Detail
-
DateTimeProperty
public DateTimeProperty()
Default constructor. Value of the property will be null. ID will be empty string. Property is editable.
-
DateTimeProperty
@Deprecated public DateTimeProperty(java.lang.String id, @CheckForNull java.lang.Object value, boolean multiline, @CheckForNull Type type)Deprecated.
-
DateTimeProperty
public DateTimeProperty(java.lang.String id, @CheckForNull java.lang.String value, boolean multiline, @CheckForNull Type type)
-
-
Method Detail
-
getType
@CheckForNull public Type getType()
Returns type of property- Returns:
- type of property
-
accept
public void accept(PropertyVisitor v) throws java.lang.Exception
Description copied from class:StringPropertyAccepts the given visitor.- Specified by:
acceptin interfacePropertyVisitorAcceptor- Overrides:
acceptin classStringProperty- Parameters:
v- the PropertyVisitor.- Throws:
java.lang.Exception
-
getClassType
public java.lang.String getClassType()
Description copied from class:StringPropertyReturns property class type.- Specified by:
getClassTypein interfacePropertyVisitorAcceptor- Overrides:
getClassTypein classStringProperty- Returns:
- PropertyID.STRING_PROPERTY
- See Also:
PropertyID.STRING_PROPERTY
-
clone
public DateTimeProperty 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 classStringProperty- Returns:
- the cloned property.
-
-