Class StandardObjectTypeLinkModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.models.EditableModel
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel<M>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceValue<TypeLink,IMdTypeLinkModel>
-
- com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectTypeLinkModel
-
- All Implemented Interfaces:
IEditableModel
,IModel
,IValue<TypeLink>
,IValidable
,IModelApiAwareModel
,IMdTypeLinkModel
,IAttributeProvider<Field>
,ITypeLinkModel<TypeLink,Field>
public class StandardObjectTypeLinkModel extends StandardObjectSwitchingSourceValue<TypeLink,IMdTypeLinkModel> implements IMdTypeLinkModel
TheIMdTypeLinkModel
for the standard attributes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
StandardObjectSwitchingSourceModel.IStandardAttributeModelCreator<T extends IModel>
-
-
Constructor Summary
Constructors Constructor Description StandardObjectTypeLinkModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project)
The 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.md.ui.aef.models.StandardObjectSwitchingSourceValue
addValueListener, createWorkingCopy, get, isEqual, removeValueListener, set
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.models.StandardObjectSwitchingSourceModel
dispose, getChange, getModelApi, getProxy, getWrappedModel, isOnline, setModelApi
-
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, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline, toString
-
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, getValidatorTarget, 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
-
StandardObjectTypeLinkModel
public StandardObjectTypeLinkModel(StandardObjectProxy proxy, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, IV8Project v8project)
The constructor.- Parameters:
proxy
- theStandardAttributeProxy
object, cannot benull
.object
- theStandardAttribute
instance, cannot benull
.feature
- the feature, cannot benull
.v8project
- the V8 project, cannot benull
-
-
Method Detail
-
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
-
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
-
getV8project
public IV8Project getV8project()
Description copied from interface:IMdTypeLinkModel
Returns the V8 project.- Specified by:
getV8project
in interfaceIMdTypeLinkModel
- Returns:
- the V8 project.
-
-