Package eu.mihosoft.devcom.impl
Class PortInfoImpl
- java.lang.Object
-
- eu.mihosoft.devcom.impl.PortInfoImpl
-
- All Implemented Interfaces:
PortInfo,ReadOnlyWithExtendedName,ReadOnlyWithName,WithExtendedName,WithName,eu.mihosoft.vmf.runtime.core.Immutable,eu.mihosoft.vmf.runtime.core.internal.VObjectInternal,eu.mihosoft.vmf.runtime.core.ObservableObject,eu.mihosoft.vmf.runtime.core.ReadOnly,eu.mihosoft.vmf.runtime.core.VObject,java.lang.Cloneable
public class PortInfoImpl extends java.lang.Object implements PortInfo, eu.mihosoft.vmf.runtime.core.VObject, eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
An implementation of the immutable model objecteu.mihosoft.devcom.PortInfo.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPortInfoImpl.BuilderImpl-
Nested classes/interfaces inherited from interface eu.mihosoft.devcom.PortInfo
PortInfo.Builder
-
Nested classes/interfaces inherited from interface eu.mihosoft.vmf.runtime.core.internal.VObjectInternal
eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair
-
Nested classes/interfaces inherited from interface eu.mihosoft.devcom.WithExtendedName
WithExtendedName.Behavior
-
Nested classes/interfaces inherited from interface eu.mihosoft.devcom.WithName
WithName.Behavior
-
-
Field Summary
Fields Modifier and Type Field Description static int_VMF_TYPE_ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void__vmf_toString(java.lang.StringBuilder sb, java.util.IdentityHashMap<java.lang.Object,?> _vmf_fToStringChecker)PortInfo_vmf_deepCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> identityMap)boolean_vmf_equals(java.lang.Object o)java.util.List<eu.mihosoft.vmf.runtime.core.Annotation>_vmf_getAnnotations()int[]_vmf_getChildrenIndices()java.lang.Object_vmf_getDefaultValueById(int propertyId)int[]_vmf_getIndicesOfPropertiesWithModelElementTypes()int[]_vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes()int[]_vmf_getIndicesOfPropertiesWithModelTypes()int[]_vmf_getParentIndices()java.util.List<eu.mihosoft.vmf.runtime.core.Annotation>_vmf_getPropertyAnnotationsById(int propertyId)int_vmf_getPropertyIdByName(java.lang.String propertyName)java.lang.String[]_vmf_getPropertyNames()java.lang.String[]_vmf_getPropertyTypeNames()int[]_vmf_getPropertyTypes()java.lang.Object_vmf_getPropertyValueById(int propertyId)java.lang.String[]_vmf_getSuperTypeNames()eu.mihosoft.vmf.runtime.core.Type_vmf_getType()int_vmf_getTypeId()int_vmf_hashCode()boolean_vmf_isSetById(int propertyId)eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject>_vmf_referencedBy()eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject>_vmf_references()void_vmf_setDefaultValueById(int propertyId, java.lang.Object defaultValue)void_vmf_setThreadLocalEquals(java.lang.ThreadLocal<java.util.Map<eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair,?>> threadlocalMap)PortInfo_vmf_shallowCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> identityMap)voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)PortInfoasReadOnly()Returns a read-only wrapper of 'PortInfo'.PortInfoclone()Returns a deep clone of this object.booleanequals(java.lang.Object o)java.lang.StringgetDescription()Returns the value of the 'description' property.java.lang.StringgetExtendedName()Returns the value of the 'extendedName' property.java.lang.StringgetLocation()Returns the value of the 'location' property.java.lang.StringgetName()Returns the value of the 'name' property.inthashCode()voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)java.lang.StringtoString()eu.mihosoft.vmf.runtime.core.VMFvmf()
-
-
-
Field Detail
-
_VMF_TYPE_ID
public static final int _VMF_TYPE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:PortInfoReturns the value of the 'description' property.The port description. Some devices add the serial number (e.g. FTDI chips).
- Specified by:
getDescriptionin interfacePortInfo- Returns:
- the value of the 'description' property.
-
getExtendedName
public java.lang.String getExtendedName()
Description copied from interface:PortInfoReturns the value of the 'extendedName' property.The extended port name, e.g., 'COM3 - Arduino UNO'
- Specified by:
getExtendedNamein interfacePortInfo- Specified by:
getExtendedNamein interfaceReadOnlyWithExtendedName- Specified by:
getExtendedNamein interfaceWithExtendedName- Returns:
- the value of the 'extendedName' property.
- See Also:
eu.mihosoft.devcom.WithExtendedName#setExtendedName(java.lang.String)
-
getLocation
public java.lang.String getLocation()
Description copied from interface:PortInfoReturns the value of the 'location' property.The port location.
- Specified by:
getLocationin interfacePortInfo- Returns:
- the value of the 'location' property.
-
getName
public java.lang.String getName()
Description copied from interface:PortInfoReturns the value of the 'name' property.The port name used to identify the port, e.g. 'COM3'.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
__vmf_toString
public void __vmf_toString(java.lang.StringBuilder sb, java.util.IdentityHashMap<java.lang.Object,?> _vmf_fToStringChecker)- Specified by:
__vmf_toStringin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_equals
public boolean _vmf_equals(java.lang.Object o)
- Specified by:
_vmf_equalsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_hashCode
public int _vmf_hashCode()
- Specified by:
_vmf_hashCodein interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_setThreadLocalEquals
public void _vmf_setThreadLocalEquals(java.lang.ThreadLocal<java.util.Map<eu.mihosoft.vmf.runtime.core.internal.VObjectInternal.EqualsPair,?>> threadlocalMap)
- Specified by:
_vmf_setThreadLocalEqualsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public PortInfo clone()
Description copied from interface:PortInfoReturns a deep clone of this object.- Specified by:
clonein interfacePortInfo- Specified by:
clonein interfaceReadOnlyWithExtendedName- Specified by:
clonein interfaceReadOnlyWithName- Specified by:
clonein interfaceeu.mihosoft.vmf.runtime.core.VObject- Specified by:
clonein interfaceWithExtendedName- Specified by:
clonein interfaceWithName- Overrides:
clonein classjava.lang.Object- Returns:
- a deep clone of this object
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
addPropertyChangeListenerin interfaceeu.mihosoft.vmf.runtime.core.ObservableObject
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
removePropertyChangeListenerin interfaceeu.mihosoft.vmf.runtime.core.ObservableObject
-
_vmf_deepCopy
public PortInfo _vmf_deepCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> identityMap)
-
_vmf_shallowCopy
public PortInfo _vmf_shallowCopy(java.util.IdentityHashMap<java.lang.Object,java.lang.Object> identityMap)
-
vmf
public eu.mihosoft.vmf.runtime.core.VMF vmf()
- Specified by:
vmfin interfaceeu.mihosoft.vmf.runtime.core.VObject
-
asReadOnly
public PortInfo asReadOnly()
Description copied from interface:PortInfoReturns a read-only wrapper of 'PortInfo'. Since this model object is immutable this method does not perform any conversion and returns this object in unmodified form.- Specified by:
asReadOnlyin interfacePortInfo- Specified by:
asReadOnlyin interfaceReadOnlyWithExtendedName- Specified by:
asReadOnlyin interfaceReadOnlyWithName- Specified by:
asReadOnlyin interfaceeu.mihosoft.vmf.runtime.core.VObject- Specified by:
asReadOnlyin interfaceWithExtendedName- Specified by:
asReadOnlyin interfaceWithName- Returns:
- a read-only wrapper of '
PortInfo'
-
_vmf_getType
public eu.mihosoft.vmf.runtime.core.Type _vmf_getType()
- Specified by:
_vmf_getTypein interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getTypeId
public int _vmf_getTypeId()
- Specified by:
_vmf_getTypeIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getSuperTypeNames
public java.lang.String[] _vmf_getSuperTypeNames()
- Specified by:
_vmf_getSuperTypeNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyNames
public java.lang.String[] _vmf_getPropertyNames()
- Specified by:
_vmf_getPropertyNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyTypes
public int[] _vmf_getPropertyTypes()
- Specified by:
_vmf_getPropertyTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyTypeNames
public java.lang.String[] _vmf_getPropertyTypeNames()
- Specified by:
_vmf_getPropertyTypeNamesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelTypes
public int[] _vmf_getIndicesOfPropertiesWithModelTypes()
- Specified by:
_vmf_getIndicesOfPropertiesWithModelTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelElementTypes
public int[] _vmf_getIndicesOfPropertiesWithModelElementTypes()
- Specified by:
_vmf_getIndicesOfPropertiesWithModelElementTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes
public int[] _vmf_getIndicesOfPropertiesWithModelTypeOrElementTypes()
- Specified by:
_vmf_getIndicesOfPropertiesWithModelTypeOrElementTypesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getChildrenIndices
public int[] _vmf_getChildrenIndices()
- Specified by:
_vmf_getChildrenIndicesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getParentIndices
public int[] _vmf_getParentIndices()
- Specified by:
_vmf_getParentIndicesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyValueById
public java.lang.Object _vmf_getPropertyValueById(int propertyId)
- Specified by:
_vmf_getPropertyValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyIdByName
public int _vmf_getPropertyIdByName(java.lang.String propertyName)
- Specified by:
_vmf_getPropertyIdByNamein interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getDefaultValueById
public java.lang.Object _vmf_getDefaultValueById(int propertyId)
- Specified by:
_vmf_getDefaultValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_setDefaultValueById
public void _vmf_setDefaultValueById(int propertyId, java.lang.Object defaultValue)- Specified by:
_vmf_setDefaultValueByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_isSetById
public boolean _vmf_isSetById(int propertyId)
- Specified by:
_vmf_isSetByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getPropertyAnnotationsById
public java.util.List<eu.mihosoft.vmf.runtime.core.Annotation> _vmf_getPropertyAnnotationsById(int propertyId)
- Specified by:
_vmf_getPropertyAnnotationsByIdin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_getAnnotations
public java.util.List<eu.mihosoft.vmf.runtime.core.Annotation> _vmf_getAnnotations()
- Specified by:
_vmf_getAnnotationsin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_referencedBy
public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_referencedBy()
- Specified by:
_vmf_referencedByin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
_vmf_references
public eu.mihosoft.vcollections.VList<eu.mihosoft.vmf.runtime.core.VObject> _vmf_references()
- Specified by:
_vmf_referencesin interfaceeu.mihosoft.vmf.runtime.core.internal.VObjectInternal
-
-