Class WebServiceDataModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.v8.dt.internal.ws.ui.aef.models.WebServiceDataModel
- All Implemented Interfaces:
IAttribute<org.eclipse.emf.ecore.EObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEmfAttribute<org.eclipse.emf.ecore.EObject>
,IModel
,IValidable
,IDynamicTreeModel<org.eclipse.emf.ecore.EObject>
,IDynamicTreeModelWithAtribiteAndOwner<org.eclipse.emf.ecore.EObject>
,EventListener
,org.eclipse.core.resources.IResourceChangeListener
public class WebServiceDataModel
extends Model
implements IDynamicTreeModelWithAtribiteAndOwner<org.eclipse.emf.ecore.EObject>, org.eclipse.core.resources.IResourceChangeListener
Web-service tree component model.
-
Field Summary
Fields inherited from interface org.eclipse.core.resources.IResourceChangeListener
PROPERTY_EVENT_MASK
-
Constructor Summary
ConstructorsConstructorDescriptionWebServiceDataModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject owner, IResourceLookup resourceLookup, WSDefinitionResourceFactory resourceFactory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes this model.getInput()
org.eclipse.emf.ecore.EObject
Returns the object that keeps the attribute.org.eclipse.emf.ecore.EObject
getOwner()
Returns owner e-object.org.eclipse.emf.ecore.EStructuralFeature
Returns the property.void
resourceChanged
(org.eclipse.core.resources.IResourceChangeEvent event) void
setObject
(org.eclipse.emf.ecore.EObject object) Sets new model object.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, 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, createWorkingCopy, discard, getComponent, isOnline, removeModelListener, setComponent
Methods inherited from interface com._1c.g5.aef2.validators.IValidable
addValidator, removeValidator, validate, validate
-
Constructor Details
-
WebServiceDataModel
public WebServiceDataModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject owner, IResourceLookup resourceLookup, WSDefinitionResourceFactory resourceFactory) Constructor.- Parameters:
object
- the web-services owner, cannot benull
feature
- the feature, cannot benull
owner
- the top object - owner, cannot benull
resourceLookup
- the resource lookup, cannot benull
resourceFactory
- the resource factory, cannot benull
-
-
Method Details
-
getChange
-
getInput
- Specified by:
getInput
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the input for content provider
-
getTreeContentProvider
- Specified by:
getTreeContentProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the domain model content provider
-
getCheckStateProvider
- Specified by:
getCheckStateProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the
ICheckStateProvider
-
getLabelProvider
- Specified by:
getLabelProvider
in interfaceIDynamicTreeModel<org.eclipse.emf.ecore.EObject>
- Returns:
- the
ILabelProvider
-
getObject
public org.eclipse.emf.ecore.EObject getObject()Description copied from interface:IAttribute
Returns the object that keeps the attribute.- Specified by:
getObject
in interfaceIAttribute<org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EStructuralFeature> - Returns:
- the object that keeps the attribute.
-
getProperty
public org.eclipse.emf.ecore.EStructuralFeature getProperty()Description copied from interface:IAttribute
Returns the property.- Specified by:
getProperty
in interfaceIAttribute<org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EStructuralFeature> - Returns:
- the property.
-
getOwner
public org.eclipse.emf.ecore.EObject getOwner()Description copied from interface:IDynamicTreeModelWithAtribiteAndOwner
Returns owner e-object.- Specified by:
getOwner
in interfaceIDynamicTreeModelWithAtribiteAndOwner<org.eclipse.emf.ecore.EObject>
- Returns:
- the owner e-object, cannot be
null
-
dispose
public void dispose()Description copied from interface:IModel
Disposes this model. -
setObject
public void setObject(org.eclipse.emf.ecore.EObject object) Description copied from interface:IDynamicTreeModelWithAtribiteAndOwner
Sets new model object.- Specified by:
setObject
in interfaceIDynamicTreeModelWithAtribiteAndOwner<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the new model object, cannot benull
-
resourceChanged
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event) - Specified by:
resourceChanged
in interfaceorg.eclipse.core.resources.IResourceChangeListener
-