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.
  • 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 be null
      feature - the feature, cannot be null
      owner - the top object - owner, cannot be null
      resourceLookup - the resource lookup, cannot be null
      resourceFactory - the resource factory, cannot be null
  • Method Details

    • getChange

      public IChange getChange()
      Specified by:
      getChange in interface IModel
      Returns:
      change describing the modifications done to the model.
    • getInput

      public Object getInput()
      Specified by:
      getInput in interface IDynamicTreeModel<org.eclipse.emf.ecore.EObject>
      Returns:
      the input for content provider
    • getTreeContentProvider

      public ITreeContentProvider getTreeContentProvider()
      Specified by:
      getTreeContentProvider in interface IDynamicTreeModel<org.eclipse.emf.ecore.EObject>
      Returns:
      the domain model content provider
    • getCheckStateProvider

      public ICheckStateProvider getCheckStateProvider()
      Specified by:
      getCheckStateProvider in interface IDynamicTreeModel<org.eclipse.emf.ecore.EObject>
      Returns:
      the ICheckStateProvider
    • getLabelProvider

      public ILabelProvider getLabelProvider()
      Specified by:
      getLabelProvider in interface IDynamicTreeModel<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 interface IAttribute<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 interface IAttribute<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 interface IDynamicTreeModelWithAtribiteAndOwner<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.
      Specified by:
      dispose in interface IModel
      Overrides:
      dispose in class Model
    • setObject

      public void setObject(org.eclipse.emf.ecore.EObject object)
      Description copied from interface: IDynamicTreeModelWithAtribiteAndOwner
      Sets new model object.
      Specified by:
      setObject in interface IDynamicTreeModelWithAtribiteAndOwner<org.eclipse.emf.ecore.EObject>
      Parameters:
      object - the new model object, cannot be null
    • resourceChanged

      public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
      Specified by:
      resourceChanged in interface org.eclipse.core.resources.IResourceChangeListener