Package com.sun.corba.ee.spi.ior
Interface TaggedProfileTemplate
-
- All Superinterfaces:
java.util.Collection<TaggedComponent>
,Identifiable
,java.lang.Iterable<TaggedComponent>
,java.util.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 java.util.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaggedProfile
create(ObjectKeyTemplate oktemp, ObjectId id)
Create a TaggedProfile from this template.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.java.util.Iterator<TaggedComponent>
getTaggedComponents()
boolean
isEquivalent(TaggedProfileTemplate temp)
Return true if temp is equivalent to this template.java.util.Iterator<TaggedComponent>
iteratorById(int id)
Return an iterator that iterates over tagged components with identifier id.<T extends TaggedComponent>
java.util.Iterator<T>iteratorById(int id, java.lang.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 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 Detail
-
getTaggedComponents
@ManagedAttribute @Description("The list of TaggedComponents in this TaggedProfileTemplate") java.util.Iterator<TaggedComponent> getTaggedComponents()
-
iteratorById
java.util.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> java.util.Iterator<T> iteratorById(int id, java.lang.Class<T> cls)
-
create
TaggedProfile create(ObjectKeyTemplate oktemp, ObjectId id)
Create a TaggedProfile from this template.- Parameters:
oktemp
- template to create fromid
- 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 fromid
- id of objectos
- stream to write to- See Also:
create(com.sun.corba.ee.spi.ior.ObjectKeyTemplate, com.sun.corba.ee.spi.ior.ObjectId)
-
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 fromid
- ID of components to look up- Returns:
- tagged components in this profile
-
-