Interface IOR
- All Superinterfaces:
Collection<TaggedProfile>, Iterable<TaggedProfile>, 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 List<TaggedProfile>, Writeable, MakeImmutable
An IOR is represented as a list of profiles.
Only instances of TaggedProfile are contained in the list.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this IOR is equivalent to ior.Return a representation of this IOR in the standard GIOP marshalled form.Return the IORTemplate for this IOR.getORB()Return the first IIOPProfile in this IOR.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.iteratorById(int id) Return an iterator that iterates over tagged profiles with identifier id.Return a representation of this IOR in the standard GIOP stringified format that begins with "IOR:".Methods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface 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, toArrayMethods inherited from interface MakeImmutable
makeImmutable
-
Method Details
-
getTaggedProfiles
@ManagedAttribute @Description("The list of profiles in this IOR") Iterator<TaggedProfile> getTaggedProfiles() -
getORB
ORB getORB() -
getTypeId
Return the type id string from the IOR.- Returns:
- type id string
-
iteratorById
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
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:
-
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
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
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 interfaceCollection<TaggedProfile>- Specified by:
equalsin interfaceList<TaggedProfile>- Overrides:
equalsin classObject- Parameters:
other- object to compare to- Returns:
- true if they are equivalent
- See Also:
-
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
-