Class Features
- java.lang.Object
-
- org.apache.karaf.features.internal.model.Features
-
- All Implemented Interfaces:
Blacklisting
public class Features extends Object implements Blacklisting
Root element of Feature definition. It contains optional attribute which allow name of repository. This name will be used in shell to display source repository of given feature.
Java class for featuresRoot complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="features"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="repository" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element name="resource-repository" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> <element name="feature" type="{http://karaf.apache.org/xmlns/features/v1.0.0}feature" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Features()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Feature>
getFeature()
Get the value of the feature property.String
getName()
Get the value of the name property.String
getNamespace()
List<String>
getRepository()
Get the value of the repository property.List<String>
getResourceRepository()
Get the value of the resource repository property.boolean
isBlacklisted()
Returnstrue
if this item is blacklisted.void
postUnmarshall(String repositoryUri)
void
setBlacklisted(boolean blacklisted)
void
setName(String value)
Set the value of the name property.void
setNamespace(String namespace)
-
-
-
Method Detail
-
getRepository
public List<String> getRepository()
Get the value of the repository 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 repository property.For example, to add a new item, do as follows:
getRepository().add(newItem);
Objects of the following type(s) are allowed in the list
String
.- Returns:
- the list of inner repositories.
-
getResourceRepository
public List<String> getResourceRepository()
Get the value of the resource repository 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 resource repository property.For example, to add a new item, do as follows:
getResourceRepository().add(newItem);
Objects of the following type(s) are allowed in the list
String
- Returns:
- the list of inner resource repositories.
-
getFeature
public List<Feature> getFeature()
Get the value of the feature 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:
getFeatures().add(newItem);
Objects of the following type(s) are allowed in the list
Feature
.- Returns:
- the list of inner features.
-
getName
public String getName()
Get the value of the name property.- Returns:
- possible object is
String
.
-
setName
public void setName(String value)
Set the value of the name property.- Parameters:
value
- allowed object isString
.
-
postUnmarshall
public void postUnmarshall(String repositoryUri)
-
setNamespace
public void setNamespace(String namespace)
-
getNamespace
public String getNamespace()
-
isBlacklisted
public boolean isBlacklisted()
Description copied from interface:Blacklisting
Returnstrue
if this item is blacklisted.- Specified by:
isBlacklisted
in interfaceBlacklisting
- Returns:
-
setBlacklisted
public void setBlacklisted(boolean blacklisted)
-
-