# ResourceExists (ant-antunit API)
declaration: package: org.apache.ant.antunit, class: ResourceExists

# Klasse ResourceExists

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.ant.antunit.ResourceExists

Alle implementierten Schnittstellen:
  `Cloneable, org.apache.tools.ant.taskdefs.condition.Condition`

public class ResourceExists extends org.apache.tools.ant.ProjectComponent implements org.apache.tools.ant.taskdefs.condition.Condition
A condition that tests whether a given resource exists.

Seit:
  AntUnit 1.2

## Feldübersicht

### Von Klasse geerbte Felder org.apache.tools.ant.ProjectComponent

`description, location, project`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`ResourceExists()`

## Methodenübersicht

Modifikator und Typ
Methode
Beschreibung
`void`
`add(org.apache.tools.ant.types.Resource r)`
The resource to check as nested element.
`boolean`
`eval()`
`void`
`setRefid(String refid)`
The resource to check as a refid.
`void`
`setResource(org.apache.tools.ant.types.Resource r)`
The resource to check as attribute.

### Von Klasse geerbte Methoden org.apache.tools.ant.ProjectComponent

`clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject`

### Von Klasse geerbte Methoden Object

`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### ResourceExists

public ResourceExists()

## Methodendetails

### setResource

public void setResource(org.apache.tools.ant.types.Resource r)
The resource to check as attribute.

Exactly one resource must be specfied either as attribute or nested element.

Parameter:
  `r` - resource to check

### setRefid

public void setRefid(String refid)
The resource to check as a refid.

Parameter:
  `refid` - resource to check as a refid
Seit:
  AntUnit 1.3

### add

public void add(org.apache.tools.ant.types.Resource r)
The resource to check as nested element.

Exactly one resource must be specfied either as attribute or nested element.

Parameter:
  `r` - resource to check

### eval

public boolean eval()

Angegeben von:
  `eval` in Schnittstelle `org.apache.tools.ant.taskdefs.condition.Condition`