Class BmMdTypeLinkModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.aef2.models.value.Value<T>
-
- com._1c.g5.v8.dt.aef2.bm.models.BmValue<TypeLink>
-
- com._1c.g5.v8.dt.md.ui.aef.models.BmMdTypeLinkModel
-
- All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>
,IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<TypeLink,IBmObject>
,IValue<TypeLink>
,IValidable
,IModelApiAwareModel
,IMdTypeLinkModel
,IAttributeProvider<Field>
,ITypeLinkModel<TypeLink,Field>
public class BmMdTypeLinkModel extends BmValue<TypeLink> implements IMdTypeLinkModel
The model for Type link features of MD object attributes.
-
-
Constructor Summary
Constructors Constructor Description BmMdTypeLinkModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IAttributeProvider<Field> attributeProvider, IV8Project v8project)
The main parameterized constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areAttributesEqual(Field attribute1, Field attribute2)
Checks if two given attributes are equal.TypeLink
createTypeLink(Field attribute, int linkItem)
Returns a new instance of type link initialized by a given attribute and a link itemCollection<Field>
getAttributes()
Returns a collection of attributes.IV8Project
getV8project()
Returns the V8 project.Field
toAttribute(TypeLink typeLink)
Extracts the attribute from a given type link.-
Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, createTask, dispose, getChange, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi, setObjectValue
-
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
-
Methods inherited from class com._1c.g5.aef2.models.EditableModel
isEditable, setEditable
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, removeValidator, validate, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Methods inherited from interface com._1c.g5.aef2.models.value.IValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
-
-
-
Constructor Detail
-
BmMdTypeLinkModel
public BmMdTypeLinkModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IAttributeProvider<Field> attributeProvider, IV8Project v8project)
The main parameterized constructor.- Parameters:
object
- EObject to be hosted by modelfeature
- Feature corresponding to the hosted objectattributeProvider
- the attribute provider, cannot benull
.v8project
- the V8 project, cannot benull
-
-
Method Detail
-
getAttributes
public Collection<Field> getAttributes()
Description copied from interface:IAttributeProvider
Returns a collection of attributes.- Specified by:
getAttributes
in interfaceIAttributeProvider<Field>
- Returns:
- Collection of attributes
-
toAttribute
public Field toAttribute(TypeLink typeLink)
Description copied from interface:ITypeLinkModel
Extracts the attribute from a given type link.- Specified by:
toAttribute
in interfaceITypeLinkModel<TypeLink,Field>
- Parameters:
typeLink
- Type link- Returns:
- The attribute contained in the type link
-
areAttributesEqual
public boolean areAttributesEqual(Field attribute1, Field attribute2)
Description copied from interface:ITypeLinkModel
Checks if two given attributes are equal.- Specified by:
areAttributesEqual
in interfaceITypeLinkModel<TypeLink,Field>
- Parameters:
attribute1
- The first attributeattribute2
- The second attribute- Returns:
true
if the attributes are equal andfalse
otherwise
-
createTypeLink
public TypeLink createTypeLink(Field attribute, int linkItem)
Description copied from interface:ITypeLinkModel
Returns a new instance of type link initialized by a given attribute and a link item- Specified by:
createTypeLink
in interfaceITypeLinkModel<TypeLink,Field>
- Parameters:
attribute
- Attribute for the type linklinkItem
- Link item for the type link- Returns:
- A new type link instance
-
getV8project
public IV8Project getV8project()
Description copied from interface:IMdTypeLinkModel
Returns the V8 project.- Specified by:
getV8project
in interfaceIMdTypeLinkModel
- Returns:
- the V8 project.
-
-