Class ImportedInterface
- java.lang.Object
- 
- es.bsc.dataclay.util.management.namespacemgr.ImportedInterface
 
- 
- All Implemented Interfaces:
- DataClaySerializable,- Serializable
 
 public final class ImportedInterface extends Object implements Serializable, DataClaySerializable This class represents an imported interface in a Namespace.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ImportedInterface()Empty constructor for queriesImportedInterface(String newimportedClassName, InterfaceID newinterfaceID, ContractID newcontractID, MetaClassID newclassOfImportID, NamespaceID newnamespaceIDofClass)Imported interface constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImplementationUsingImport(ImplementationID implementationID)Add implementation that uses an importvoidaddOperationUsingImport(OperationID operationID)Add operation that uses an importvoidaddPropertyUsingImport(PropertyID propertyID)Add property that uses an importvoidaddSubClassUsingImport(MetaClassID metaClassID)Add subclass that uses an importvoiddeserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs)Deserializes the object from the buffer provided using the interface represented in the bitmap specified.booleanequals(Object t)MetaClassIDgetClassOfImportID()Get the ImportedInterface::classOfImportIDContractIDgetContractID()Get the ImportedInterface::contractIDUUIDgetId()get idHashSet<ImplementationID>getImplementationsUsingImports()Get the Namespace::implementationsUsingImportsStringgetImportedClassName()Get the ImportedInterface::importedClassNameInterfaceIDgetInterfaceID()Get the ImportedInterface::interfaceIDNamespaceIDgetNamespaceIDofClass()Get the ImportedInterface::namespaceIDofClassHashSet<OperationID>getOperationsUsingImports()Get the Namespace::operationsUsingImportsHashSet<PropertyID>getPropertiesUsingImports()Get the Namespace::propertiesUsingImportsHashSet<MetaClassID>getSubClassesOfImport()Get the ImportedInterface::subClassesOfImportinthashCode()booleaninUse()Specifies if an imported interface is in use or notvoidremoveImplementationUsingImport(ImplementationID implementationID)Remove implementation that uses an importvoidremoveOperationUsingImport(OperationID operationID)Remove operation that uses an importvoidremovePropertyUsingImport(PropertyID propertyID)Remove property that uses an importvoidremoveSubClassUsingImport(MetaClassID metaClassID)Remove subclass that uses an importvoidserialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)Serializes the object into the buffer provided using the interface represented in the bitmap specified.voidsetClassOfImportID(MetaClassID newclassOfImportID)Set the ImportedInterface::classOfImportIDvoidsetContractID(ContractID newcontractID)Set the ImportedInterface::contractIDvoidsetId(UUID newid)Set idvoidsetImplementationsUsingImports(HashSet<ImplementationID> newimplementationsUsingImports)Set the Namespace::implementationsUsingImportsvoidsetImportedClassName(String newimportedClassName)Set the ImportedInterface::importedClassNamevoidsetInterfaceID(InterfaceID newinterfaceID)Set the ImportedInterface::interfaceIDvoidsetNamespaceIDofClass(NamespaceID newnamespaceIDofClass)Set the ImportedInterface::namespaceIDofClassvoidsetOperationsUsingImports(HashSet<OperationID> newoperationsUsingImports)Set the Namespace::operationsUsingImportsvoidsetPropertiesUsingImports(HashSet<PropertyID> newpropertiesUsingImports)Set the Namespace::propertiesUsingImportsvoidsetSubClassesOfImport(HashSet<MetaClassID> newsubClassesOfImport)Set the ImportedInterface::subClassesOfImport
 
- 
- 
- 
Constructor Detail- 
ImportedInterfacepublic ImportedInterface() Empty constructor for queries
 - 
ImportedInterfacepublic ImportedInterface(String newimportedClassName, InterfaceID newinterfaceID, ContractID newcontractID, MetaClassID newclassOfImportID, NamespaceID newnamespaceIDofClass) Imported interface constructor- Parameters:
- newimportedClassName- Name of the class of the imported interface
- newinterfaceID- ID of the interface to import
- newcontractID- ID of the contract used to import the interface
- newclassOfImportID- ID of the class of the import
- newnamespaceIDofClass- ID of the namespace of the class of the import
 
 
- 
 - 
Method Detail- 
getPropertiesUsingImportspublic HashSet<PropertyID> getPropertiesUsingImports() Get the Namespace::propertiesUsingImports- Returns:
- the propertiesUsingImports
 
 - 
setPropertiesUsingImportspublic void setPropertiesUsingImports(HashSet<PropertyID> newpropertiesUsingImports) Set the Namespace::propertiesUsingImports- Parameters:
- newpropertiesUsingImports- the propertiesUsingImports to set
 
 - 
getOperationsUsingImportspublic HashSet<OperationID> getOperationsUsingImports() Get the Namespace::operationsUsingImports- Returns:
- the operationsUsingImports
 
 - 
setOperationsUsingImportspublic void setOperationsUsingImports(HashSet<OperationID> newoperationsUsingImports) Set the Namespace::operationsUsingImports- Parameters:
- newoperationsUsingImports- the operationsUsingImports to set
 
 - 
getImplementationsUsingImportspublic HashSet<ImplementationID> getImplementationsUsingImports() Get the Namespace::implementationsUsingImports- Returns:
- the implementationsUsingImports
 
 - 
setImplementationsUsingImportspublic void setImplementationsUsingImports(HashSet<ImplementationID> newimplementationsUsingImports) Set the Namespace::implementationsUsingImports- Parameters:
- newimplementationsUsingImports- the implementationsUsingImports to set
 
 - 
getSubClassesOfImportpublic HashSet<MetaClassID> getSubClassesOfImport() Get the ImportedInterface::subClassesOfImport- Returns:
- the subClassesOfImport
 
 - 
setSubClassesOfImportpublic void setSubClassesOfImport(HashSet<MetaClassID> newsubClassesOfImport) Set the ImportedInterface::subClassesOfImport- Parameters:
- newsubClassesOfImport- the subClassesOfImport to set
 
 - 
inUsepublic boolean inUse() Specifies if an imported interface is in use or not- Returns:
- TRUE if the interface is in use by some property, operation, implementation or subclass. FALSE otherwise.
 
 - 
addPropertyUsingImportpublic void addPropertyUsingImport(PropertyID propertyID) Add property that uses an import- Parameters:
- propertyID- ID of the property
 
 - 
addOperationUsingImportpublic void addOperationUsingImport(OperationID operationID) Add operation that uses an import- Parameters:
- operationID- ID of the operation
 
 - 
addImplementationUsingImportpublic void addImplementationUsingImport(ImplementationID implementationID) Add implementation that uses an import- Parameters:
- implementationID- ID of the implementation
 
 - 
addSubClassUsingImportpublic void addSubClassUsingImport(MetaClassID metaClassID) Add subclass that uses an import- Parameters:
- metaClassID- ID of the class
 
 - 
removePropertyUsingImportpublic void removePropertyUsingImport(PropertyID propertyID) Remove property that uses an import- Parameters:
- propertyID- ID of the property
 
 - 
removeOperationUsingImportpublic void removeOperationUsingImport(OperationID operationID) Remove operation that uses an import- Parameters:
- operationID- ID of the operation
 
 - 
removeImplementationUsingImportpublic void removeImplementationUsingImport(ImplementationID implementationID) Remove implementation that uses an import- Parameters:
- implementationID- ID of the implementation
 
 - 
removeSubClassUsingImportpublic void removeSubClassUsingImport(MetaClassID metaClassID) Remove subclass that uses an import- Parameters:
- metaClassID- ID of the class
 
 - 
getImportedClassNamepublic String getImportedClassName() Get the ImportedInterface::importedClassName- Returns:
- the importedClassName
 
 - 
setImportedClassNamepublic void setImportedClassName(String newimportedClassName) Set the ImportedInterface::importedClassName- Parameters:
- newimportedClassName- the importedClassName to set
 
 - 
getInterfaceIDpublic InterfaceID getInterfaceID() Get the ImportedInterface::interfaceID- Returns:
- the interfaceID
 
 - 
setInterfaceIDpublic void setInterfaceID(InterfaceID newinterfaceID) Set the ImportedInterface::interfaceID- Parameters:
- newinterfaceID- the interfaceID to set
 
 - 
getContractIDpublic ContractID getContractID() Get the ImportedInterface::contractID- Returns:
- the contractID
 
 - 
setContractIDpublic void setContractID(ContractID newcontractID) Set the ImportedInterface::contractID- Parameters:
- newcontractID- the contractID to set
 
 - 
getClassOfImportIDpublic MetaClassID getClassOfImportID() Get the ImportedInterface::classOfImportID- Returns:
- the classOfImportID
 
 - 
setClassOfImportIDpublic void setClassOfImportID(MetaClassID newclassOfImportID) Set the ImportedInterface::classOfImportID- Parameters:
- newclassOfImportID- the classOfImportID to set
 
 - 
getNamespaceIDofClasspublic NamespaceID getNamespaceIDofClass() Get the ImportedInterface::namespaceIDofClass- Returns:
- the namespaceIDofClass
 
 - 
setNamespaceIDofClasspublic void setNamespaceIDofClass(NamespaceID newnamespaceIDofClass) Set the ImportedInterface::namespaceIDofClass- Parameters:
- newnamespaceIDofClass- the namespaceIDofClass to set
 
 - 
serializepublic void serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting) Description copied from interface:DataClaySerializableSerializes the object into the buffer provided using the interface represented in the bitmap specified.- Specified by:
- serializein interface- DataClaySerializable
- Parameters:
- dcBuffer- Buffer in which to serialize the object
- ignoreUserTypes- Indicates if user types found during serialization must be ignored or not (for instance, non recursive make persistent)
- ifaceBitMaps- Map of bitmaps representing the interfaces to use
- curSerializedObjs- Current serialized objects Object -> OID tag. This structure must be different during each serialization since OID tags are not shared.
- pendingObjs- Pending objs.
- referenceCounting- Reference counting from this object.
 
 - 
deserializepublic void deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs) Description copied from interface:DataClaySerializableDeserializes the object from the buffer provided using the interface represented in the bitmap specified.- Specified by:
- deserializein interface- DataClaySerializable
- Parameters:
- dcBuffer- Buffer from which to deserialize the object
- ifaceBitMaps- Map of bitmaps representing the interfaces to use
- metadata- Useful metadata of the object for execution
- curDeserializedJavaObjs- Currently deserialized Java objects
 
 - 
getIdpublic UUID getId() get id- Returns:
- id
 
 - 
setIdpublic void setId(UUID newid) Set id- Parameters:
- newid- the id
 
 
- 
 
-