Interface TaggedProfileTemplate

All Superinterfaces:
Collection<TaggedComponent>, Identifiable, Iterable<TaggedComponent>, List<TaggedComponent>, MakeImmutable, Writeable, WriteContents
All Known Subinterfaces:
IIOPProfileTemplate
All Known Implementing Classes:
IIOPProfileTemplateImpl, TaggedProfileTemplateBase, VirtualAddressAgentImpl.SpecialIIOPProfileTemplateImpl

@ManagedData @Description("A template for creating a TaggedProfile") @IncludeSubclass(IIOPProfileTemplate.class) public interface TaggedProfileTemplate extends List<TaggedComponent>, Identifiable, WriteContents, MakeImmutable
Base template for creating TaggedProfiles. A TaggedProfile will often contain tagged components. A template that does not contain components acts like an empty immutable list.
  • Method Details

    • getTaggedComponents

      @ManagedAttribute @Description("The list of TaggedComponents in this TaggedProfileTemplate") Iterator<TaggedComponent> getTaggedComponents()
    • iteratorById

      Iterator<TaggedComponent> iteratorById(int id)
      Return an iterator that iterates over tagged components with identifier id. It is not possible to modify the list through this iterator.
      Parameters:
      id - id to look up
      Returns:
      Iterator over tagged components
    • iteratorById

      <T extends TaggedComponent> Iterator<T> iteratorById(int id, Class<T> cls)
    • create

      Create a TaggedProfile from this template.
      Parameters:
      oktemp - template to create from
      id - id of object
      Returns:
      created TaggedProfile
    • write

      void write(ObjectKeyTemplate oktemp, ObjectId id, OutputStream os)
      Write the profile create( oktemp, id ) to the OutputStream os.
      Parameters:
      oktemp - template to create from
      id - id of object
      os - stream to write to
      See Also:
    • isEquivalent

      boolean isEquivalent(TaggedProfileTemplate temp)
      Return true if temp is equivalent to this template. Equivalence means that in some sense an invocation on a profile created by this template has the same results as an invocation on a profile created from temp. Equivalence may be weaker than equality.
      Parameters:
      temp - template to compare with
      Returns:
      true if they are equivalent
    • getIOPComponents

      TaggedComponent[] getIOPComponents(ORB orb, int id)
      Return the tagged components in this profile (if any) in the GIOP marshalled form, which is required for Portable Interceptors. Returns null if either the profile has no components, or if this type of profile can never contain components.
      Parameters:
      orb - ORB to get components from
      id - ID of components to look up
      Returns:
      tagged components in this profile