Class BmSourceUrlModel

All Implemented Interfaces:
IAttribute<IBmObject,org.eclipse.emf.ecore.EStructuralFeature>, IEditableModel, IEmfAttribute<IBmObject>, IModel, IEmfValueAttribute<String,IBmObject>, IValue<String>, IValidable, IModelApiAwareModel, ISourceUrlModel<IBmObject>

public class BmSourceUrlModel extends BmValue<String> implements ISourceUrlModel<IBmObject>
The Ws-reference source URL model.
  • Constructor Details

    • BmSourceUrlModel

      public BmSourceUrlModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, WSDefinitionLoader loader, IResourceLookup resourceLookup)
      Creates new model.
      Parameters:
      object - the object, cannot be null
      feature - the object feature, cannot be null
      loader - the ws-definition loader, cannot be null
      resourceLookup - the resource lookup, cannot be null
  • Method Details

    • doCommit

      public void doCommit(boolean reloadContent)
      Description copied from interface: ISourceUrlModel
      Commits source URL value and reloads WSDL content if needed.
      Specified by:
      doCommit in interface ISourceUrlModel<IBmObject>
      Parameters:
      reloadContent - true if needed reload content
    • reloadWsdlContentAndWriteResource

      public boolean reloadWsdlContentAndWriteResource()
      Description copied from interface: ISourceUrlModel
      Reoads WSDL content and write it to resource.
      Specified by:
      reloadWsdlContentAndWriteResource in interface ISourceUrlModel<IBmObject>
      Returns:
      true if successfully loaded an wrote
    • getChange

      public IChange getChange()
      Specified by:
      getChange in interface IModel
      Overrides:
      getChange in class BmValue<String>
      Returns:
      change describing the modifications done to the model.
    • createTask

      protected IModelApiTaskN<Void> createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, String valueToApply)
      Description copied from class: BmValue
      Creates an IModelApiTaskN that executes during applying changes.
      Overrides:
      createTask in class BmValue<String>
      Parameters:
      object - the object to change, cannot be null.
      feature - the feature the feature to change, cannot be null.
      valueToApply - the value to apply.
      Returns:
      the created IModelApiTaskN.