public class Resource extends Object implements Comparable<Resource>
Structured after the model used by Maven.
| Constructor and Description |
|---|
Resource(Element resource)
Convenience constructor when an XML element is available that represents
a Maven
|
Resource(String directory,
Boolean filtering)
Creates an immutable
Resource with no "includes". |
Resource(String directory,
Boolean filtering,
Collection<String> includes)
Creates an immutable
Resource with optional "includes". |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Resource o) |
boolean |
equals(Object obj) |
String |
getDirectory() |
Element |
getElement(Document document)
Returns the Maven POM element for this resource
|
Boolean |
getFiltering() |
List<String> |
getIncludes() |
String |
getSimpleDescription() |
int |
hashCode() |
String |
toString() |
public Resource(Element resource)
resource - to parse (required)public Resource(String directory, Boolean filtering)
Resource with no "includes".directory - the directory (required)filtering - whether filtering should occurpublic int compareTo(Resource o)
compareTo in interface Comparable<Resource>public String getDirectory()
public Element getElement(Document document)
document - the POM document (required)null elementpublic Boolean getFiltering()
public String getSimpleDescription()
Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.