Class CometEntity

    • Field Detail

      • TAG_TYPE_QUALIFIER

        public static final java.lang.String TAG_TYPE_QUALIFIER
        The constant TAG_TYPE_QUALIFIER.
        See Also:
        Constant Field Values
      • TAG_GROUP_QUALIFIER

        public static final java.lang.String TAG_GROUP_QUALIFIER
        The constant TAG_GROUP_QUALIFIER.
        See Also:
        Constant Field Values
      • TAG_DOMAIN_QUALIFIER

        public static final java.lang.String TAG_DOMAIN_QUALIFIER
        The constant TAG_DOMAIN_QUALIFIER.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CometEntity

        public CometEntity()
        Instantiates a new Comet entity.
      • CometEntity

        public CometEntity​(int id)
        Instantiates a new Comet entity.
        Parameters:
        id - the id
    • Method Detail

      • checkMinimalConstraints

        public void checkMinimalConstraints()
                                     throws CometException
        Check minimal constraints.
        Throws:
        CometException - the comet exception
      • entityEquals

        public boolean entityEquals​(CometEntity other)
        Entity equals boolean.
        Parameters:
        other - the other
        Returns:
        the boolean
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getEntityDescription

        public final java.lang.String getEntityDescription()
        Gets entity description.
        Returns:
        the entity description
      • getEntityLabel

        public final java.lang.String getEntityLabel()
        Gets entity label.
        Returns:
        the entity label
      • getId

        public int getId()
        Gets id.
        Returns:
        the id
      • getReferenceConstraints

        public java.util.List<CometReference> getReferenceConstraints()

        Get reference (i.e. PluginDependency) constraints for this type, including constraints inherited from super classes

        See the CometTypeConstraints annotation for more information

        Returns:
        list of mandatory dependencies for this type
      • getRepositoryFilename

        public java.lang.String getRepositoryFilename()
                                               throws CometException

        Gets the repository filename for this particular item

        This method MUST be overridden by classes extending CometEntity

        Returns:
        the repository filename of this particular item
        Throws:
        CometException - the comet exception
      • getRepositoryPath

        public java.lang.String getRepositoryPath()
                                           throws CometException

        Get the relative repository path for this configuration type.

        This method MUST be overridden by classes extending CometEntity.

        Returns:
        relative repository path
        Throws:
        CometException - the comet exception
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • initDefaultValues

        public CometEntity initDefaultValues()
        Init default values comet entity.
        Returns:
        the comet entity
      • initDefaultValues

        public CometEntity initDefaultValues​(java.util.Map<java.lang.String,​java.lang.Object> initialValues)
                                      throws CometException
        Init default values comet entity.
        Parameters:
        initialValues - the initial values
        Returns:
        the comet entity
        Throws:
        CometException - the comet exception
      • setId

        public void setId​(int id)
        Sets id.
        Parameters:
        id - the id