org.xoe.core.packages
Class Dependency
java.lang.Object
|
+--org.xoe.core.packages.Dependency
- Direct Known Subclasses:
- PackageDependency, ServiceDependency
- public class Dependency
- extends Object
Instances of this class represent abstract specifications of packages. A
specification describes information to be found in the package description of
a matching package.
Constructor Summary |
Dependency(org.w3c.dom.Element depEl)
Parses the standard dependency attributes,
such as predepends , xpath ,
name , and ns , on a
<dep /> element. |
Dependency(String namespace,
String localName)
|
Dependency(String namespace,
String localName,
boolean predepends)
|
Dependency(String namespace,
String localName,
String xpath)
|
Dependency(String namespace,
String localName,
String xpath,
boolean predepends)
|
Dependency
public Dependency(org.w3c.dom.Element depEl)
throws PackageDescriptionException
- Parses the standard dependency attributes,
such as
predepends
, xpath
,
name
, and ns
, on a
<dep />
element.
- Parameters:
depEl
- an element with tag-name 'dep', an 'ns' attribute, a
'name' attribute, an optional 'predepends' attribute,
and an optional 'xpath' attribute.- Throws:
PackageDescriptionException
- if depEl has a tag-name besides 'dep', or has
no 'ns' or 'name' attribute.
Dependency
public Dependency(String namespace,
String localName)
Dependency
public Dependency(String namespace,
String localName,
String xpath)
Dependency
public Dependency(String namespace,
String localName,
boolean predepends)
Dependency
public Dependency(String namespace,
String localName,
String xpath,
boolean predepends)
getDepElement
public org.w3c.dom.Element getDepElement(org.w3c.dom.Document ownerdoc)
- Build an XML representation of this
Dependency
.
The Element must have an xpath attribute defined.
- Parameters:
ownerdoc
- the Document
to use in building
the Element
(using methods such
as Document.createElement
etc...)
create
public static Dependency create(org.w3c.dom.Element el)
throws PackageDescriptionException
toString
public String toString()
- Overrides:
toString
in class Object
getNamespaceURI
public String getNamespaceURI()
getLocalName
public String getLocalName()
getPredepends
public boolean getPredepends()
getXPath
public String getXPath()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object