Class BaseReferenceable

    • Field Detail

      • refCount

        protected int refCount
      • parentId

        protected String parentId
    • Constructor Detail

      • BaseReferenceable

        public BaseReferenceable()
    • Method Detail

      • isReferent

        public boolean isReferent()
        Description copied from interface: IReferenceable
        Indicates if this resource is a referent (i.e. is referred to by another resource) or not.
        Specified by:
        isReferent in interface IReferenceable
        Returns:
        true if this resource is a referent, false if it is not.
      • setIsReferent

        public void setIsReferent​(boolean value)
        Description copied from interface: IReferenceable
        Sets the flag indicating if this resource is a referent (i.e. is referred to by another resource) or not. This also sets the count of time this referent is referenced to 1.
        Specified by:
        setIsReferent in interface IReferenceable
        Parameters:
        value - true if the resource is a referent, false if it is not.
      • getReferenceCount

        public int getReferenceCount()
        Description copied from interface: IReferenceable
        Gets the number of time this referent is referenced to.
        Specified by:
        getReferenceCount in interface IReferenceable
        Returns:
        the number of time this referent is referenced to.
      • setReferenceCount

        public void setReferenceCount​(int value)
        Description copied from interface: IReferenceable
        Sets the number of time this referent is referenced to.
        Specified by:
        setReferenceCount in interface IReferenceable
        Parameters:
        value - the number of time this referent is referenced to.
      • getParentId

        public String getParentId()
        Gets the identifier of the parent resource of this resource.
        Returns:
        the identifier of this resource's parent, or null if there is none.
      • setParentId

        public void setParentId​(String id)
        Sets the identifier of the parent resource of this resource.
        Parameters:
        id - the identifier to set.