Package com.sun.corba.se.impl.ior
Class IORImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.sun.corba.se.impl.ior.FreezableList
com.sun.corba.se.spi.ior.IdentifiableContainerBase
com.sun.corba.se.impl.ior.IORImpl
- All Implemented Interfaces:
IOR,MakeImmutable,Writeable,Iterable,Collection,List
An IOR is represented as a list of profiles.
Only objects that extend TaggedProfile should be added to an IOR.
However, enforcing this restriction requires overriding all
of the addXXX methods inherited from List, so no check
is included here.
- Author:
- Ken Cavanaugh
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty IOR.IORImpl(ORB orb, String typeId, IORTemplateList iortemps, ObjectId id) Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the IORTemplate.IORImpl(ORB orb, String typeId, IORTemplate iortemp, ObjectId id) Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the IORTemplate.IORImpl(InputStream is) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn a representation of this IOR in the standard GIOP marshalled form.Return the IORTemplateList for this IOR.getORB()Return the first IIOPProfile in this IOR.Return the type id string from the IOR.inthashCode()booleanisEquivalent(IOR ior) Return true if this IOR is equivalent to ior.booleanisNil()Return true if this IOR has no profiles.voidReturn a representation of this IOR in the standard GIOP stringified format that begins with "IOR:".voidwrite(OutputStream os) Write this object directly to the output stream.Methods inherited from class com.sun.corba.se.spi.ior.IdentifiableContainerBase
iteratorByIdMethods inherited from class com.sun.corba.se.impl.ior.FreezableList
add, get, isImmutable, makeElementsImmutable, remove, set, size, subListMethods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.sun.corba.se.spi.ior.IOR
iteratorByIdMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
IORImpl
Construct an empty IOR. This is needed for null object references. -
IORImpl
-
IORImpl
Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the IORTemplate. -
IORImpl
Construct an IOR from an IORTemplate by applying the same object id to each TaggedProfileTemplate in the IORTemplate. -
IORImpl
-
-
Method Details
-
getORB
-
equals
- Specified by:
equalsin interfaceCollection- Specified by:
equalsin interfaceList- Overrides:
equalsin classFreezableList
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection- Specified by:
hashCodein interfaceList- Overrides:
hashCodein classFreezableList
-
getTypeId
Description copied from interface:IORReturn the type id string from the IOR. -
write
Description copied from interface:WriteableWrite this object directly to the output stream. -
stringify
Description copied from interface:IORReturn a representation of this IOR in the standard GIOP stringified format that begins with "IOR:". -
makeImmutable
public void makeImmutable()- Specified by:
makeImmutablein interfaceMakeImmutable- Overrides:
makeImmutablein classFreezableList
-
getIOPIOR
Description copied from interface:IORReturn a representation of this IOR in the standard GIOP marshalled form. -
isNil
public boolean isNil()Description copied from interface:IORReturn true if this IOR has no profiles. -
isEquivalent
Description copied from interface:IORReturn true if this IOR is equivalent to ior. Here equivalent means that the typeids are the same, they have the same number of profiles, and each profile is equivalent to the corresponding profile.- Specified by:
isEquivalentin interfaceIOR
-
getIORTemplates
Return the IORTemplateList for this IOR. Will throw exception if it is not possible to generate an IOR from the IORTemplateList that is equal to this IOR, which can only happen if not every TaggedProfile in the IOR has the same ObjectId.- Specified by:
getIORTemplatesin interfaceIOR
-
getProfile
Return the first IIOPProfile in this IOR. XXX THIS IS TEMPORARY FOR BACKWARDS COMPATIBILITY AND WILL BE REMOVED SOON!- Specified by:
getProfilein interfaceIOR
-