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 ObjectKeyTemplate
oktemp
-
Constructor Summary
Constructors Constructor Description IORTemplateImpl(ObjectKeyTemplate oktemp)
IORTemplateImpl(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ObjectKeyTemplate
getObjectKeyTemplate()
int
hashCode()
boolean
isEquivalent(IORFactory other)
Return true iff this.makeIOR(orb,typeid,oid).isEquivalent( other.makeIOR(orb,typeid,oid) for all orb, typeid, and oid.void
makeImmutable()
Ensure that this IORTemplate and all of its profiles can not be modified.IOR
makeIOR(ORB orb, java.lang.String typeid, ObjectId oid)
Construct an IOR containing the given ORB, typeid, and ObjectId.java.lang.String
toString()
void
write(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:
toString
in classjava.util.AbstractCollection<TaggedProfileTemplate>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Collection<TaggedProfileTemplate>
- Specified by:
equals
in interfacejava.util.List<TaggedProfileTemplate>
- Overrides:
equals
in classFreezableList<TaggedProfileTemplate>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<TaggedProfileTemplate>
- Specified by:
hashCode
in interfacejava.util.List<TaggedProfileTemplate>
- Overrides:
hashCode
in classFreezableList<TaggedProfileTemplate>
-
getObjectKeyTemplate
public ObjectKeyTemplate getObjectKeyTemplate()
- Specified by:
getObjectKeyTemplate
in interfaceIORTemplate
-
makeIOR
public IOR makeIOR(ORB orb, java.lang.String typeid, ObjectId oid)
Description copied from interface:IORFactory
Construct an IOR containing the given ORB, typeid, and ObjectId. The same ObjectId will be used for all TaggedProfileTemplates in the IORFactory.- Specified by:
makeIOR
in interfaceIORFactory
- Parameters:
orb
- ORB to usetypeid
- typeid of IORoid
- objectId IOR- Returns:
- created IOR
-
isEquivalent
public boolean isEquivalent(IORFactory other)
Description copied from interface:IORFactory
Return true iff this.makeIOR(orb,typeid,oid).isEquivalent( other.makeIOR(orb,typeid,oid) for all orb, typeid, and oid.- Specified by:
isEquivalent
in 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:
makeImmutable
in interfaceMakeImmutable
- Overrides:
makeImmutable
in classFreezableList<TaggedProfileTemplate>
-
write
public void write(OutputStream os)
Description copied from interface:Writeable
Write this object directly to the output stream.
-
-