Class ImportedInterface

    • 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 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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 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.
      • 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 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
      • getId

        public UUID getId()
        get id
        Returns:
        id
      • setId

        public void setId​(UUID newid)
        Set id
        Parameters:
        newid - the id