|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.impl.bundle.obr.resource.RequirementImpl
public class RequirementImpl
Implements the Requirement interface.
Constructor Summary | |
---|---|
RequirementImpl(String name)
Create a requirement with the given name. |
|
RequirementImpl(org.xmlpull.v1.XmlPullParser parser)
Parse the requirement from the pull parser. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getComment()
|
String |
getFilter()
Return the filter. |
String |
getName()
Return the name of the requirement. |
int |
hashCode()
|
boolean |
isExtend()
|
boolean |
isMultiple()
|
boolean |
isOptional()
|
boolean |
isSatisfied(Capability capability)
|
void |
setComment(String comment)
|
void |
setExtend(boolean extend)
|
void |
setFilter(String filter)
|
void |
setMultiple(boolean b)
|
void |
setOptional(boolean b)
|
String |
toString()
|
static Tag |
toXML(Requirement requirement)
|
Tag |
toXML(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RequirementImpl(String name)
name
- public RequirementImpl(org.xmlpull.v1.XmlPullParser parser) throws Exception
parser
-
Exception
Method Detail |
---|
public void setFilter(String filter)
public String getFilter()
Requirement
getFilter
in interface Requirement
public Tag toXML(String name)
public String getName()
Requirement
getName
in interface Requirement
public boolean isSatisfied(Capability capability)
isSatisfied
in interface Requirement
public String toString()
toString
in class Object
public String getComment()
getComment
in interface Requirement
public void setComment(String comment)
public static Tag toXML(Requirement requirement)
public boolean isMultiple()
isMultiple
in interface Requirement
public boolean isOptional()
isOptional
in interface Requirement
public void setOptional(boolean b)
public void setMultiple(boolean b)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isExtend()
isExtend
in interface Requirement
public void setExtend(boolean extend)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |