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 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
-
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:DataClaySerializableSerializes the object into the buffer provided using the interface represented in the bitmap specified.- Specified by:
serializein 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:DataClaySerializableDeserializes the object from the buffer provided using the interface represented in the bitmap specified.- Specified by:
deserializein 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
-
-