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 Summary
Constructors Constructor Description ImportedInterface()
Empty constructor for queriesImportedInterface(String newimportedClassName, InterfaceID newinterfaceID, ContractID newcontractID, MetaClassID newclassOfImportID, NamespaceID newnamespaceIDofClass)
Imported interface constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImplementationUsingImport(ImplementationID implementationID)
Add implementation that uses an importvoid
addOperationUsingImport(OperationID operationID)
Add operation that uses an importvoid
addPropertyUsingImport(PropertyID propertyID)
Add property that uses an importvoid
addSubClassUsingImport(MetaClassID metaClassID)
Add subclass that uses an importvoid
deserialize(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.boolean
equals(Object t)
MetaClassID
getClassOfImportID()
Get the ImportedInterface::classOfImportIDContractID
getContractID()
Get the ImportedInterface::contractIDUUID
getId()
get idHashSet<ImplementationID>
getImplementationsUsingImports()
Get the Namespace::implementationsUsingImportsString
getImportedClassName()
Get the ImportedInterface::importedClassNameInterfaceID
getInterfaceID()
Get the ImportedInterface::interfaceIDNamespaceID
getNamespaceIDofClass()
Get the ImportedInterface::namespaceIDofClassHashSet<OperationID>
getOperationsUsingImports()
Get the Namespace::operationsUsingImportsHashSet<PropertyID>
getPropertiesUsingImports()
Get the Namespace::propertiesUsingImportsHashSet<MetaClassID>
getSubClassesOfImport()
Get the ImportedInterface::subClassesOfImportint
hashCode()
boolean
inUse()
Specifies if an imported interface is in use or notvoid
removeImplementationUsingImport(ImplementationID implementationID)
Remove implementation that uses an importvoid
removeOperationUsingImport(OperationID operationID)
Remove operation that uses an importvoid
removePropertyUsingImport(PropertyID propertyID)
Remove property that uses an importvoid
removeSubClassUsingImport(MetaClassID metaClassID)
Remove subclass that uses an importvoid
serialize(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.void
setClassOfImportID(MetaClassID newclassOfImportID)
Set the ImportedInterface::classOfImportIDvoid
setContractID(ContractID newcontractID)
Set the ImportedInterface::contractIDvoid
setId(UUID newid)
Set idvoid
setImplementationsUsingImports(HashSet<ImplementationID> newimplementationsUsingImports)
Set the Namespace::implementationsUsingImportsvoid
setImportedClassName(String newimportedClassName)
Set the ImportedInterface::importedClassNamevoid
setInterfaceID(InterfaceID newinterfaceID)
Set the ImportedInterface::interfaceIDvoid
setNamespaceIDofClass(NamespaceID newnamespaceIDofClass)
Set the ImportedInterface::namespaceIDofClassvoid
setOperationsUsingImports(HashSet<OperationID> newoperationsUsingImports)
Set the Namespace::operationsUsingImportsvoid
setPropertiesUsingImports(HashSet<PropertyID> newpropertiesUsingImports)
Set the Namespace::propertiesUsingImportsvoid
setSubClassesOfImport(HashSet<MetaClassID> newsubClassesOfImport)
Set the ImportedInterface::subClassesOfImport
-
-
-
Constructor Detail
-
ImportedInterface
public ImportedInterface()
Empty constructor for queries
-
ImportedInterface
public ImportedInterface(String newimportedClassName, InterfaceID newinterfaceID, ContractID newcontractID, MetaClassID newclassOfImportID, NamespaceID newnamespaceIDofClass)
Imported interface constructor- Parameters:
newimportedClassName
- Name of the class of the imported interfacenewinterfaceID
- ID of the interface to importnewcontractID
- ID of the contract used to import the interfacenewclassOfImportID
- ID of the class of the importnewnamespaceIDofClass
- ID of the namespace of the class of the import
-
-
Method Detail
-
getPropertiesUsingImports
public HashSet<PropertyID> getPropertiesUsingImports()
Get the Namespace::propertiesUsingImports- Returns:
- the propertiesUsingImports
-
setPropertiesUsingImports
public void setPropertiesUsingImports(HashSet<PropertyID> newpropertiesUsingImports)
Set the Namespace::propertiesUsingImports- Parameters:
newpropertiesUsingImports
- the propertiesUsingImports to set
-
getOperationsUsingImports
public HashSet<OperationID> getOperationsUsingImports()
Get the Namespace::operationsUsingImports- Returns:
- the operationsUsingImports
-
setOperationsUsingImports
public void setOperationsUsingImports(HashSet<OperationID> newoperationsUsingImports)
Set the Namespace::operationsUsingImports- Parameters:
newoperationsUsingImports
- the operationsUsingImports to set
-
getImplementationsUsingImports
public HashSet<ImplementationID> getImplementationsUsingImports()
Get the Namespace::implementationsUsingImports- Returns:
- the implementationsUsingImports
-
setImplementationsUsingImports
public void setImplementationsUsingImports(HashSet<ImplementationID> newimplementationsUsingImports)
Set the Namespace::implementationsUsingImports- Parameters:
newimplementationsUsingImports
- the implementationsUsingImports to set
-
getSubClassesOfImport
public HashSet<MetaClassID> getSubClassesOfImport()
Get the ImportedInterface::subClassesOfImport- Returns:
- the subClassesOfImport
-
setSubClassesOfImport
public void setSubClassesOfImport(HashSet<MetaClassID> newsubClassesOfImport)
Set the ImportedInterface::subClassesOfImport- Parameters:
newsubClassesOfImport
- the subClassesOfImport to set
-
inUse
public 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.
-
addPropertyUsingImport
public void addPropertyUsingImport(PropertyID propertyID)
Add property that uses an import- Parameters:
propertyID
- ID of the property
-
addOperationUsingImport
public void addOperationUsingImport(OperationID operationID)
Add operation that uses an import- Parameters:
operationID
- ID of the operation
-
addImplementationUsingImport
public void addImplementationUsingImport(ImplementationID implementationID)
Add implementation that uses an import- Parameters:
implementationID
- ID of the implementation
-
addSubClassUsingImport
public void addSubClassUsingImport(MetaClassID metaClassID)
Add subclass that uses an import- Parameters:
metaClassID
- ID of the class
-
removePropertyUsingImport
public void removePropertyUsingImport(PropertyID propertyID)
Remove property that uses an import- Parameters:
propertyID
- ID of the property
-
removeOperationUsingImport
public void removeOperationUsingImport(OperationID operationID)
Remove operation that uses an import- Parameters:
operationID
- ID of the operation
-
removeImplementationUsingImport
public void removeImplementationUsingImport(ImplementationID implementationID)
Remove implementation that uses an import- Parameters:
implementationID
- ID of the implementation
-
removeSubClassUsingImport
public void removeSubClassUsingImport(MetaClassID metaClassID)
Remove subclass that uses an import- Parameters:
metaClassID
- ID of the class
-
getImportedClassName
public String getImportedClassName()
Get the ImportedInterface::importedClassName- Returns:
- the importedClassName
-
setImportedClassName
public void setImportedClassName(String newimportedClassName)
Set the ImportedInterface::importedClassName- Parameters:
newimportedClassName
- the importedClassName to set
-
getInterfaceID
public InterfaceID getInterfaceID()
Get the ImportedInterface::interfaceID- Returns:
- the interfaceID
-
setInterfaceID
public void setInterfaceID(InterfaceID newinterfaceID)
Set the ImportedInterface::interfaceID- Parameters:
newinterfaceID
- the interfaceID to set
-
getContractID
public ContractID getContractID()
Get the ImportedInterface::contractID- Returns:
- the contractID
-
setContractID
public void setContractID(ContractID newcontractID)
Set the ImportedInterface::contractID- Parameters:
newcontractID
- the contractID to set
-
getClassOfImportID
public MetaClassID getClassOfImportID()
Get the ImportedInterface::classOfImportID- Returns:
- the classOfImportID
-
setClassOfImportID
public void setClassOfImportID(MetaClassID newclassOfImportID)
Set the ImportedInterface::classOfImportID- Parameters:
newclassOfImportID
- the classOfImportID to set
-
getNamespaceIDofClass
public NamespaceID getNamespaceIDofClass()
Get the ImportedInterface::namespaceIDofClass- Returns:
- the namespaceIDofClass
-
setNamespaceIDofClass
public void setNamespaceIDofClass(NamespaceID newnamespaceIDofClass)
Set the ImportedInterface::namespaceIDofClass- Parameters:
newnamespaceIDofClass
- the namespaceIDofClass to set
-
serialize
public void serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)
Description copied from interface:DataClaySerializable
Serializes the object into the buffer provided using the interface represented in the bitmap specified.- Specified by:
serialize
in interfaceDataClaySerializable
- Parameters:
dcBuffer
- Buffer in which to serialize the objectignoreUserTypes
- 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 usecurSerializedObjs
- 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.
-
deserialize
public void deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedJavaObjs)
Description copied from interface:DataClaySerializable
Deserializes the object from the buffer provided using the interface represented in the bitmap specified.- Specified by:
deserialize
in interfaceDataClaySerializable
- Parameters:
dcBuffer
- Buffer from which to deserialize the objectifaceBitMaps
- Map of bitmaps representing the interfaces to usemetadata
- Useful metadata of the object for executioncurDeserializedJavaObjs
- Currently deserialized Java objects
-
getId
public UUID getId()
get id- Returns:
- id
-
setId
public void setId(UUID newid)
Set id- Parameters:
newid
- the id
-
-