Package com.sun.corba.ee.impl.ior
Class IORTemplateImpl
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- com.sun.corba.ee.impl.ior.FreezableList<E>
-
- com.sun.corba.ee.spi.ior.IdentifiableContainerBase<TaggedProfileTemplate>
-
- com.sun.corba.ee.impl.ior.IORTemplateImpl
-
- All Implemented Interfaces:
IORFactory,IORTemplate,MakeImmutable,Writeable,java.lang.Iterable<TaggedProfileTemplate>,java.util.Collection<TaggedProfileTemplate>,java.util.List<TaggedProfileTemplate>
public class IORTemplateImpl extends IdentifiableContainerBase<TaggedProfileTemplate> implements IORTemplate
This class is a container of TaggedProfileTemplates.
-
-
Field Summary
Fields Modifier and Type Field Description private ObjectKeyTemplateoktemp
-
Constructor Summary
Constructors Constructor Description IORTemplateImpl(ObjectKeyTemplate oktemp)IORTemplateImpl(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ObjectKeyTemplategetObjectKeyTemplate()inthashCode()booleanisEquivalent(IORFactory other)Return true iff this.makeIOR(orb,typeid,oid).isEquivalent( other.makeIOR(orb,typeid,oid) for all orb, typeid, and oid.voidmakeImmutable()Ensure that this IORTemplate and all of its profiles can not be modified.IORmakeIOR(ORB orb, java.lang.String typeid, ObjectId oid)Construct an IOR containing the given ORB, typeid, and ObjectId.java.lang.StringtoString()voidwrite(OutputStream os)Write this object directly to the output stream.-
Methods inherited from class com.sun.corba.ee.spi.ior.IdentifiableContainerBase
iteratorById
-
Methods inherited from class com.sun.corba.ee.impl.ior.FreezableList
add, get, isImmutable, makeElementsImmutable, remove, set, size, subList
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.corba.ee.spi.ior.IORTemplate
iteratorById
-
-
-
-
Field Detail
-
oktemp
private ObjectKeyTemplate oktemp
-
-
Constructor Detail
-
IORTemplateImpl
public IORTemplateImpl(ObjectKeyTemplate oktemp)
-
IORTemplateImpl
public IORTemplateImpl(InputStream is)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractCollection<TaggedProfileTemplate>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Collection<TaggedProfileTemplate>- Specified by:
equalsin interfacejava.util.List<TaggedProfileTemplate>- Overrides:
equalsin classFreezableList<TaggedProfileTemplate>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<TaggedProfileTemplate>- Specified by:
hashCodein interfacejava.util.List<TaggedProfileTemplate>- Overrides:
hashCodein classFreezableList<TaggedProfileTemplate>
-
getObjectKeyTemplate
public ObjectKeyTemplate getObjectKeyTemplate()
- Specified by:
getObjectKeyTemplatein interfaceIORTemplate
-
makeIOR
public IOR makeIOR(ORB orb, java.lang.String typeid, ObjectId oid)
Description copied from interface:IORFactoryConstruct an IOR containing the given ORB, typeid, and ObjectId. The same ObjectId will be used for all TaggedProfileTemplates in the IORFactory.- Specified by:
makeIORin interfaceIORFactory- Parameters:
orb- ORB to usetypeid- typeid of IORoid- objectId IOR- Returns:
- created IOR
-
isEquivalent
public boolean isEquivalent(IORFactory other)
Description copied from interface:IORFactoryReturn true iff this.makeIOR(orb,typeid,oid).isEquivalent( other.makeIOR(orb,typeid,oid) for all orb, typeid, and oid.- Specified by:
isEquivalentin interfaceIORFactory- Parameters:
other- factory to compare with- Returns:
- true if they are equivalent
-
makeImmutable
public void makeImmutable()
Ensure that this IORTemplate and all of its profiles can not be modified. This overrides the method inherited from FreezableList through IdentifiableContainerBase.- Specified by:
makeImmutablein interfaceMakeImmutable- Overrides:
makeImmutablein classFreezableList<TaggedProfileTemplate>
-
write
public void write(OutputStream os)
Description copied from interface:WriteableWrite this object directly to the output stream.
-
-