Package com.sun.corba.ee.impl.ior
Class GenericTaggedProfile
- java.lang.Object
-
- com.sun.corba.ee.impl.ior.GenericIdentifiable
-
- com.sun.corba.ee.impl.ior.GenericTaggedProfile
-
- All Implemented Interfaces:
Identifiable
,MakeImmutable
,TaggedProfile
,Writeable
public class GenericTaggedProfile extends GenericIdentifiable implements TaggedProfile
-
-
Constructor Summary
Constructors Constructor Description GenericTaggedProfile(int id, InputStream is)
GenericTaggedProfile(ORB orb, int id, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaggedProfile
getIOPProfile()
Return the TaggedProfile as a CDR encapsulation in the standard format.ObjectId
getObjectId()
ObjectKey
getObjectKey()
ObjectKeyTemplate
getObjectKeyTemplate()
TaggedProfileTemplate
getTaggedProfileTemplate()
boolean
isEquivalent(TaggedProfile prof)
Return true is prof is equivalent to this TaggedProfile.boolean
isLocal()
Return true if this TaggedProfile was created in orb.void
makeImmutable()
-
Methods inherited from class com.sun.corba.ee.impl.ior.GenericIdentifiable
equals, getData, getId, hashCode, toString, write
-
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.Identifiable
getId
-
-
-
-
Field Detail
-
orb
private ORB orb
-
-
Constructor Detail
-
GenericTaggedProfile
public GenericTaggedProfile(int id, InputStream is)
-
GenericTaggedProfile
public GenericTaggedProfile(ORB orb, int id, byte[] data)
-
-
Method Detail
-
getTaggedProfileTemplate
public TaggedProfileTemplate getTaggedProfileTemplate()
- Specified by:
getTaggedProfileTemplate
in interfaceTaggedProfile
-
getObjectId
public ObjectId getObjectId()
- Specified by:
getObjectId
in interfaceTaggedProfile
-
getObjectKeyTemplate
public ObjectKeyTemplate getObjectKeyTemplate()
- Specified by:
getObjectKeyTemplate
in interfaceTaggedProfile
-
getObjectKey
public ObjectKey getObjectKey()
- Specified by:
getObjectKey
in interfaceTaggedProfile
-
isEquivalent
public boolean isEquivalent(TaggedProfile prof)
Description copied from interface:TaggedProfile
Return true is prof is equivalent to this TaggedProfile. This means that this and prof are indistinguishable for the purposes of remote invocation. Typically this means that the profile data is identical and both profiles contain exactly the same components (if components are applicable). isEquivalent( prof ) should imply that getObjectId().equals( prof.getObjectId() ) is true, and so is getObjectKeyTemplate().equals( prof.getObjectKeyTemplate() ).- Specified by:
isEquivalent
in interfaceTaggedProfile
- Parameters:
prof
- profile to compare with- Returns:
- true if they are equivalent
-
makeImmutable
public void makeImmutable()
- Specified by:
makeImmutable
in interfaceMakeImmutable
-
isLocal
public boolean isLocal()
Description copied from interface:TaggedProfile
Return true if this TaggedProfile was created in orb. Caches the result.- Specified by:
isLocal
in interfaceTaggedProfile
- Returns:
- if this TaggedProfile was created in orb
-
getIOPProfile
public TaggedProfile getIOPProfile()
Description copied from interface:TaggedProfile
Return the TaggedProfile as a CDR encapsulation in the standard format. This is required for Portable interceptors.- Specified by:
getIOPProfile
in interfaceTaggedProfile
- Returns:
- the tagged profile
-
-