Package com.sun.corba.ee.spi.ior
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 Summary
Modifier and TypeMethodDescriptioncreate
(ObjectKeyTemplate oktemp, ObjectId id) Create a TaggedProfile from this template.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.boolean
Return true if temp is equivalent to this template.iteratorById
(int id) Return an iterator that iterates over tagged components with identifier id.<T extends TaggedComponent>
Iterator<T> iteratorById
(int id, Class<T> cls) void
write
(ObjectKeyTemplate oktemp, ObjectId id, OutputStream os) Write the profile create( oktemp, id ) to the OutputStream os.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface com.sun.corba.ee.spi.ior.Identifiable
getId
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
Methods inherited from interface com.sun.corba.ee.spi.ior.MakeImmutable
makeImmutable
Methods inherited from interface com.sun.corba.ee.spi.ior.WriteContents
writeContents
-
Method Details
-
getTaggedComponents
@ManagedAttribute @Description("The list of TaggedComponents in this TaggedProfileTemplate") Iterator<TaggedComponent> getTaggedComponents() -
iteratorById
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
-
create
Create a TaggedProfile from this template.- Parameters:
oktemp
- template to create fromid
- id of object- Returns:
- created TaggedProfile
-
write
Write the profile create( oktemp, id ) to the OutputStream os.- Parameters:
oktemp
- template to create fromid
- id of objectos
- stream to write to- See Also:
-
isEquivalent
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
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 fromid
- ID of components to look up- Returns:
- tagged components in this profile
-