Class Dependency
- java.lang.Object
-
- org.apache.karaf.features.internal.model.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 Summary
Fields Modifier and Type Field Description protected Boolean
dependency
protected String
name
protected Boolean
prerequisite
protected String
version
-
Constructor Summary
Constructors Constructor Description Dependency()
Dependency(String name, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getName()
Feature name should be non empty string.String
getVersion()
Gets the value of the version property.int
hashCode()
boolean
hasVersion()
Since version has a default value ("0.0.0"), returns whether or not the version has been set.boolean
isBlacklisted()
Returnstrue
if this item is blacklisted.boolean
isDependency()
boolean
isPrerequisite()
void
setBlacklisted(boolean blacklisted)
void
setDependency(Boolean dependency)
void
setName(String value)
Sets the value of the value property.void
setPrerequisite(Boolean prerequisite)
void
setVersion(String value)
Sets the value of the version property.String
toString()
-
-
-
Method Detail
-
getName
public String getName()
Feature name should be non empty string.- Specified by:
getName
in interfaceDependency
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the value property.- Parameters:
value
- allowed object isString
-
getVersion
public String getVersion()
Gets the value of the version property.- Specified by:
getVersion
in interfaceDependency
- Returns:
- possible object is
String
-
setVersion
public void setVersion(String value)
Sets the value of the version property.- Parameters:
value
- allowed object isString
-
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 interfaceDependency
-
isPrerequisite
public boolean isPrerequisite()
- Specified by:
isPrerequisite
in interfaceDependency
-
setPrerequisite
public void setPrerequisite(Boolean prerequisite)
-
isDependency
public boolean isDependency()
- Specified by:
isDependency
in interfaceDependency
-
setDependency
public void setDependency(Boolean dependency)
-
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)
-
-