Class OperationName

All Implemented Interfaces:
Serializable, Emptiable, LenientComparable, IdentifiedObject

final class OperationName extends DefaultOperationMetadata
An OperationMetadata placeholder to be replaced later by a reference to another OperationMetadata. This temporary place holder is used when the operation name is unmarshalled before the actual operation definition.
Since:
0.5
Version:
0.5
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
  • Constructor Details

    • OperationName

      OperationName(String operationName)
      Creates a new placeholder for the operation of the given name.
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this placeholder.
      Overrides:
      toString in class AbstractMetadata
    • resolve

      static void resolve(Collection<DefaultOperationMetadata> containsOperations, Collection<DefaultCoupledResource> coupledResources)
      For every instance of DefaultCoupledResource associated to an operation of kind OperationName, replaces the operation by a "real" DefaultOperationMetadata of the same name, if any.

      This method updates the elements in the coupledResources collection in-place. The other collection is unmodified.

      This method is invoked at unmarshalling time for resolving the OperationMetadata instance which were identified only by a name in a <srv:operationName> element.

    • add

      private static void add(Map<String,DefaultOperationMetadata> byName, String name, DefaultOperationMetadata operation)
      Adds the given operation in the given map under the given name. If an entry already exists for the given name, then this method sets the value to null for meaning that we have duplicated values for that name.