Class DefinitionModel
- java.lang.Object
-
- com._1c.g5.aef2.validators.Validable
-
- com._1c.g5.aef2.models.Model
-
- com._1c.g5.aef2.standard.definitions.models.AbstractDefinitionModel
-
- com._1c.g5.aef2.standard.definitions.models.DefinitionModel
-
- All Implemented Interfaces:
ICompoundModel
,IModel
,IDefinitionModel
,IValidable
public class DefinitionModel extends AbstractDefinitionModel implements IDefinitionModel
The default implementation of theIDefinitionModel
.
It keeps theIContainerDefinition
instance and the unmodifiable collection ofObject
s as the model objects.- See Also:
AbstractDefinitionModel
-
-
Constructor Summary
Constructors Constructor Description DefinitionModel(IContainerDefinition definition, Object... objects)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IContainerDefinition
getDefinition()
Returns the container definition.Collection<Object>
getObjects()
Returns the collection of editing objects.-
Methods inherited from class com._1c.g5.aef2.standard.definitions.models.AbstractDefinitionModel
addModel, addRuleResultListener, dispose, getChange, getModels, getRuleResult, getRuleResultProcessor, handleRuleResultChanged, removeModel, removeRuleResultListener, setRuleResult, setRuleResultProcessor, toString
-
Methods inherited from class com._1c.g5.aef2.models.Model
addModelListener, beginExternalUpdate, checkOffline, checkOnline, commit, createWorkingCopy, discard, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
-
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.ICompoundModel
getModels
-
Methods inherited from interface com._1c.g5.aef2.standard.definitions.models.IDefinitionModel
addModel, addRuleResultListener, getRuleResult, getRuleResultProcessor, removeModel, removeRuleResultListener, setRuleResult, setRuleResultProcessor
-
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, createWorkingCopy, discard, dispose, getChange, getComponent, isOnline, removeModelListener, setComponent
-
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
-
-
-
Constructor Detail
-
DefinitionModel
public DefinitionModel(IContainerDefinition definition, Object... objects)
Creates a new instance.- Parameters:
definition
- theIContainerDefinition
instance, cannot benull
.objects
- the objects, cannot benull
.
-
-
Method Detail
-
getDefinition
public final IContainerDefinition getDefinition()
Description copied from interface:IDefinitionModel
Returns the container definition.- Specified by:
getDefinition
in interfaceIDefinitionModel
- Returns:
- the container definition, can be
null
.
-
getObjects
public final Collection<Object> getObjects()
Description copied from interface:IDefinitionModel
Returns the collection of editing objects.- Specified by:
getObjects
in interfaceIDefinitionModel
- Returns:
- the collection, never
null
.
-
-