Class Dependency

  • All Implemented Interfaces:
    Blacklisting, Dependency

    public class Dependency
    extends Object
    implements Dependency

    Dependency of feature.

    Java class for dependency complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="dependency">
       <simpleContent>
         <extension base="<http://karaf.apache.org/xmlns/features/v1.0.0>featureName">
           <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" default="0.0.0" />
         </extension>
       </simpleContent>
     </complexType>
     
    • Field Detail

      • version

        protected String version
      • prerequisite

        protected Boolean prerequisite
      • dependency

        protected Boolean dependency
    • Constructor Detail

      • Dependency

        public Dependency()
      • Dependency

        public Dependency​(String name,
                          String version)
    • Method Detail

      • getName

        public String getName()
        Feature name should be non empty string.
        Specified by:
        getName in interface Dependency
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the value property.
        Parameters:
        value - allowed object is String
      • getVersion

        public String getVersion()
        Gets the value of the version property.
        Specified by:
        getVersion in interface Dependency
        Returns:
        possible object is String
      • setVersion

        public void setVersion​(String value)
        Sets the value of the version property.
        Parameters:
        value - allowed object is String
      • hasVersion

        public boolean hasVersion()
        Since version has a default value ("0.0.0"), returns whether or not the version has been set.
        Specified by:
        hasVersion in interface Dependency
      • setPrerequisite

        public void setPrerequisite​(Boolean prerequisite)
      • setDependency

        public void setDependency​(Boolean dependency)
      • isBlacklisted

        public boolean isBlacklisted()
        Description copied from interface: Blacklisting
        Returns true if this item is blacklisted.
        Specified by:
        isBlacklisted in interface Blacklisting
        Returns:
      • setBlacklisted

        public void setBlacklisted​(boolean blacklisted)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object