Class Feature

  • All Implemented Interfaces:
    Blacklisting, Feature

    public class Feature
    extends Content
    implements Feature

    Definition of the Feature.

    Java class for feature complex type.

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

     <complexType name="feature">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="config" type="{http://karaf.apache.org/xmlns/features/v1.0.0}config" maxOccurs="unbounded" minOccurs="0"/>
             <element name="configfile" type="{http://karaf.apache.org/xmlns/features/v1.0.0}configFile" maxOccurs="unbounded" minOccurs="0"/>
             <element name="feature" type="{http://karaf.apache.org/xmlns/features/v1.0.0}dependency" maxOccurs="unbounded" minOccurs="0"/>
             <element name="bundle" type="{http://karaf.apache.org/xmlns/features/v1.0.0}bundle" maxOccurs="unbounded" minOccurs="0"/>
             <element name="conditional" type="{http://karaf.apache.org/xmlns/features/v1.0.0}conditional" maxOccurs="unbounded" minOccurs="0"/>
             <element name="capability" type="{http://karaf.apache.org/xmlns/features/v1.0.0}capability" maxOccurs="unbounded" minOccurs="0"/>
             <element name="requirement" type="{http://karaf.apache.org/xmlns/features/v1.0.0}requirement" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="name" use="required" type="{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" />
           <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="resolver" type="{http://karaf.apache.org/xmlns/features/v1.0.0}resolver" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Feature

        public Feature()
      • Feature

        public Feature​(String name)
    • Method Detail

      • getName

        public String getName()
        Get the value of the name property.
        Specified by:
        getName in interface Feature
        Returns:
        possible object is String
      • setName

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

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

        public void setVersion​(String value)
        Set 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 Feature
        Returns:
        true if the feature has a version, false else.
      • getDescription

        public String getDescription()
        Get the value of the description property.
        Specified by:
        getDescription in interface Feature
        Returns:
        possible object is String.
      • setDescription

        public void setDescription​(String value)
        Set the value of the description property.
        Parameters:
        value - allowed object is String.
      • getDetails

        public String getDetails()
        Get the feature details.
        Specified by:
        getDetails in interface Feature
        Returns:
        the feature details.
      • setDetails

        public void setDetails​(String details)
        Set the feature details.
        Parameters:
        details - the feature details.
      • getResolver

        public String getResolver()
        Get the value of the resolver property.
        Specified by:
        getResolver in interface Feature
        Returns:
        possible object is String.
      • getInstall

        public String getInstall()
        Get the feature install flag.
        Specified by:
        getInstall in interface Feature
        Returns:
        the feature install flags.
      • setInstall

        public void setInstall​(String install)
        Set the feature install flag.
        Parameters:
        install - the feature install flag.
      • setResolver

        public void setResolver​(String value)
        Set the value of the resolver property.
        Parameters:
        value - allowed object is String.
      • getStartLevel

        public int getStartLevel()
        Get the value of the startLevel property.
        Specified by:
        getStartLevel in interface Feature
        Returns:
        possible object is Integer.
      • setStartLevel

        public void setStartLevel​(Integer value)
        Set the value of the startLevel property.
        Parameters:
        value - allowed object is Integer.
      • isHidden

        public boolean isHidden()
        Get the value of the hidden property.
        Specified by:
        isHidden in interface Feature
        Returns:
        true if the feature is hidden, false else.
      • setHidden

        public void setHidden​(Boolean value)
        Set the value of the hidden property.
        Parameters:
        value - true to set the feature as hidden, false else.
      • getConditional

        public List<Conditional> getConditional()
        Get the value of the conditional property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the feature property. For example, to add a new item, do as follows:
            getConditionals().add(newItem);
         
        Objects of the following type(s) are allowed in the list Conditional.
        Specified by:
        getConditional in interface Feature
        Returns:
        the list of feature conditions.
      • getScoping

        public Scoping getScoping()
        Get the feature scoping.
        Specified by:
        getScoping in interface Feature
        Returns:
        the feature scoping.
      • setScoping

        public void setScoping​(Scoping scoping)
        Set the feature scoping.
        Parameters:
        scoping - the feature scoping.
      • toString

        public String toString()
        Return a string representation of the feature.
        Overrides:
        toString in class Object
        Returns:
        the feature string representation.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • interpolation

        protected void interpolation​(Properties properties)
      • postUnmarshall

        public void postUnmarshall()
      • setNamespace

        public void setNamespace​(String namespace)
      • setResourceRepositories

        public void setResourceRepositories​(List<String> resourceRepositories)
      • setRepositoryUrl

        public void setRepositoryUrl​(String repositoryUrl)
      • 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)