Class BmSourceUrlModel
java.lang.Object
com._1c.g5.aef2.validators.Validable
com._1c.g5.aef2.models.Model
com._1c.g5.aef2.models.EditableModel
com._1c.g5.aef2.models.value.Value<T>
com._1c.g5.v8.dt.aef2.bm.models.BmValue<String>
com._1c.g5.v8.dt.internal.ws.ui.properties.models.BmSourceUrlModel
- All Implemented Interfaces:
IAttribute<IBmObject,
,org.eclipse.emf.ecore.EStructuralFeature> IEditableModel
,IEmfAttribute<IBmObject>
,IModel
,IEmfValueAttribute<String,
,IBmObject> IValue<String>
,IValidable
,IModelApiAwareModel
,ISourceUrlModel<IBmObject>
The Ws-reference source URL model.
-
Constructor Summary
ConstructorsConstructorDescriptionBmSourceUrlModel
(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, WSDefinitionLoader loader, IResourceLookup resourceLookup) Creates new model. -
Method Summary
Modifier and TypeMethodDescriptionprotected IModelApiTaskN<Void>
createTask
(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, String valueToApply) Creates anIModelApiTaskN
that executes during applying changes.void
doCommit
(boolean reloadContent) Commits source URL value and reloads WSDL content if needed.boolean
Reoads WSDL content and write it to resource.Methods inherited from class com._1c.g5.v8.dt.aef2.bm.models.BmValue
adapt, dispose, getModelApi, getObject, getObjectValue, getProperty, processBmValueChange, setModelApi, setObjectValue
Methods inherited from class com._1c.g5.aef2.models.value.Value
addValueListener, createWorkingCopy, discard, get, getCommittedValue, getUncommittedValue, getValidatorTarget, isEqual, notifyValueChanged, queueNotifyValueChanged, removeValueListener, set, setCommittedValue, setUncommittedValue, setValue, toString
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, endExternalUpdate, getComponent, getCurrentChangeOrigin, getRunnableQueue, isOnline, notifyModelChanged, notifyModelCommitted, removeModelListener, setComponent, setOnline
Methods inherited from class com._1c.g5.aef2.validators.Validable
addValidator, 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.IAttribute
getObject, getProperty
Methods inherited from interface com._1c.g5.aef2.models.IModel
addModelListener, commit, discard, dispose, 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 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 benull
feature
- the object feature, cannot benull
loader
- the ws-definition loader, cannot benull
resourceLookup
- the resource lookup, cannot benull
-
-
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 interfaceISourceUrlModel<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 interfaceISourceUrlModel<IBmObject>
- Returns:
true
if successfully loaded an wrote
-
getChange
-
createTask
protected IModelApiTaskN<Void> createTask(IBmObject object, org.eclipse.emf.ecore.EStructuralFeature feature, String valueToApply) Description copied from class:BmValue
Creates anIModelApiTaskN
that executes during applying changes.- Overrides:
createTask
in classBmValue<String>
- Parameters:
object
- the object to change, cannot benull
.feature
- the feature the feature to change, cannot benull
.valueToApply
- the value to apply.- Returns:
- the created
IModelApiTaskN
.
-