Package com.sun.corba.ee.spi.ior
Interface IOR
-
- All Superinterfaces:
java.util.Collection<TaggedProfile>,java.lang.Iterable<TaggedProfile>,java.util.List<TaggedProfile>,MakeImmutable,Writeable
- All Known Implementing Classes:
IORImpl
@ManagedData @Description("Interoperable Object Reference: the internal structure of a remote object reference") public interface IOR extends java.util.List<TaggedProfile>, Writeable, MakeImmutableAn IOR is represented as a list of profiles. Only instances of TaggedProfile are contained in the list.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Return true if this IOR is equivalent to ior.IORgetIOPIOR()Return a representation of this IOR in the standard GIOP marshalled form.IORTemplateListgetIORTemplates()Return the IORTemplate for this IOR.ORBgetORB()IIOPProfilegetProfile()Return the first IIOPProfile in this IOR.java.util.Iterator<TaggedProfile>getTaggedProfiles()java.lang.StringgetTypeId()Return the type id string from the IOR.booleanisEquivalent(IOR ior)Return true if this IOR is equivalent to ior.booleanisNil()Return true if this IOR has no profiles.java.util.Iterator<TaggedProfile>iteratorById(int id)Return an iterator that iterates over tagged profiles with identifier id.java.lang.Stringstringify()Return a representation of this IOR in the standard GIOP stringified format that begins with "IOR:".-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, 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
-
-
-
-
Method Detail
-
getTaggedProfiles
@ManagedAttribute @Description("The list of profiles in this IOR") java.util.Iterator<TaggedProfile> getTaggedProfiles()
-
getORB
ORB getORB()
-
getTypeId
@ManagedAttribute @Description("The repository ID of the IOR") java.lang.String getTypeId()Return the type id string from the IOR.- Returns:
- type id string
-
iteratorById
java.util.Iterator<TaggedProfile> iteratorById(int id)
Return an iterator that iterates over tagged profiles with identifier id. It is not possible to modify the list through this iterator.- Parameters:
id- identifier id- Returns:
- Iterator over relevant tagged profiles
-
stringify
java.lang.String stringify()
Return a representation of this IOR in the standard GIOP stringified format that begins with "IOR:". This does not return the same asObject.toString()- Returns:
- String representation
- See Also:
Object.toString()
-
getIOPIOR
IOR getIOPIOR()
Return a representation of this IOR in the standard GIOP marshalled form.- Returns:
- a representation of this IOR
-
isNil
boolean isNil()
Return true if this IOR has no profiles.- Returns:
- true if there aren't any profiles, false otherwise
-
isEquivalent
boolean isEquivalent(IOR ior)
Return 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.- Parameters:
ior- IOR to compare to- Returns:
- true if they are equivalent
- See Also:
equals(java.lang.Object)
-
equals
boolean equals(java.lang.Object other)
Return true if this IOR is equivalent to ior. Here equivalent means that the typeids and delegates are the same. It does not check if the profiles are the same or of the same number.- Specified by:
equalsin interfacejava.util.Collection<TaggedProfile>- Specified by:
equalsin interfacejava.util.List<TaggedProfile>- Overrides:
equalsin classjava.lang.Object- Parameters:
other- object to compare to- Returns:
- true if they are equivalent
- See Also:
isEquivalent(IOR)
-
getIORTemplates
IORTemplateList getIORTemplates()
Return the IORTemplate for this IOR. This is simply a list of all TaggedProfileTemplates derived from the TaggedProfiles of the IOR.- Returns:
- the IORTemplate for this IOR
-
getProfile
IIOPProfile getProfile()
Return the first IIOPProfile in this IOR.- Returns:
- the first IIOPProfile
-
-