Package com._1c.g5.v8.dt.ws.resource
Class WsDefinitionObjectReferencePersistenceContributor
- java.lang.Object
- 
- com._1c.g5.v8.dt.ws.resource.WsDefinitionObjectReferencePersistenceContributor
 
- 
- All Implemented Interfaces:
- IBmReferencePersistenceContributor
 
 public final class WsDefinitionObjectReferencePersistenceContributor extends Object implements IBmReferencePersistenceContributor The implementation ofIBmReferencePersistenceContributorresponsible for persisting WS definition references.
- 
- 
Constructor SummaryConstructors Constructor Description WsDefinitionObjectReferencePersistenceContributor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateReferenceValue(org.eclipse.emf.ecore.EObject target, IBmNamespace contextNs)Creates internal representation of reference value.ObjectdeserializeReferenceValue(DataInput input)Deserializes reference value.StringgetId()Gets ID of the contributor.org.eclipse.emf.ecore.EObjectresolveTarget(Object value, IBmNamespace contextNs, IBmPlatformTransaction transaction)Resolves target object pointed by the specified reference value.org.eclipse.emf.common.util.URIresolveTargetUri(Object value, IBmNamespace contextNs)Resolves URI of the target object pointed by the specified reference value.voidserializeReferenceValue(Object value, DataOutput output)Serializes the specified reference value.
 
- 
- 
- 
Method Detail- 
createReferenceValuepublic Object createReferenceValue(org.eclipse.emf.ecore.EObject target, IBmNamespace contextNs) Description copied from interface:IBmReferencePersistenceContributorCreates internal representation of reference value.- Specified by:
- createReferenceValuein interface- IBmReferencePersistenceContributor
- Parameters:
- target- The object (may be a proxy) the reference points to (reference target). May not be- null.
- contextNs- The context namespace, i.e. the namespace the referencing object belongs to. May not be- null.
- Returns:
- the internal representation of the reference value or nullif the target object is not supported by this contributor or reference to the target object may not be created. The class of the returned object must implementequalsmethod so that it returnstruein case either reference value points to the same target.
 
 - 
resolveTargetpublic org.eclipse.emf.ecore.EObject resolveTarget(Object value, IBmNamespace contextNs, IBmPlatformTransaction transaction) Description copied from interface:IBmReferencePersistenceContributorResolves target object pointed by the specified reference value. In case the provided value has not been created by this contributor the behaviour of this method is not specified.- Specified by:
- resolveTargetin interface- IBmReferencePersistenceContributor
- Parameters:
- value- The reference value. May not be- null.
- contextNs- The context namespace, i.e. the namespace the referencing object belongs to. May not be- null.
- transaction- The current transaction. May not be- null.
- Returns:
- the target object or nullif it does not exist.
 
 - 
resolveTargetUripublic org.eclipse.emf.common.util.URI resolveTargetUri(Object value, IBmNamespace contextNs) Description copied from interface:IBmReferencePersistenceContributorResolves URI of the target object pointed by the specified reference value. In case the provided value has not been created by this contributor the behaviour of this method is not specified.- Specified by:
- resolveTargetUriin interface- IBmReferencePersistenceContributor
- Parameters:
- value- The reference value. May not be- null.
- contextNs- The context namespace, i.e. the namespace the referencing object belongs to. May not be- null.
- Returns:
- the URI of the target object, never null.
 
 - 
serializeReferenceValuepublic void serializeReferenceValue(Object value, DataOutput output) throws IOException Description copied from interface:IBmReferencePersistenceContributorSerializes the specified reference value. In case the provided value has not been created by this contributor the behaviour of this method is not specified.- Specified by:
- serializeReferenceValuein interface- IBmReferencePersistenceContributor
- Parameters:
- value- The reference value to serialize. May not be- null.
- output- The data output to write the serialized representation to. May not be- null.
- Throws:
- IOException
 
 - 
deserializeReferenceValuepublic Object deserializeReferenceValue(DataInput input) throws IOException Description copied from interface:IBmReferencePersistenceContributorDeserializes reference value. In case data supplied by the specified input are corrupt the behaviour of this method is not specified.- Specified by:
- deserializeReferenceValuein interface- IBmReferencePersistenceContributor
- Parameters:
- input- The data input to read the serialized representation from. May not be- null.
- Returns:
- the deserialized reference value, never null.
- Throws:
- IOException
 
 - 
getIdpublic String getId() Description copied from interface:IBmReferencePersistenceContributorGets ID of the contributor. The ID must not change after the application restart. It is convenient to use the class name of the contributor as the ID unless several instances of the same contributor class are bound to the same engine.- Specified by:
- getIdin interface- IBmReferencePersistenceContributor
- Returns:
- the ID of the contributor.
 
 
- 
 
-