org.netbeans.api.annotations.common/1 1.17.1

org.netbeans.api.annotations.common
Annotation Type StaticResource


@Target(value=FIELD)
@Retention(value=SOURCE)
@Documented
public @interface StaticResource

Marker for a constant representing a static resource. The annotated field must be a compile-time String constant whose value denotes a resource path. For example, the resource might be an icon path intended for ImageUtilities.loadImage. The primary purpose of the annotation is for its processor, which will signal a compile-time error if the resource does not in fact exist - ensuring that at least this usage will not be accidentally broken by moving, renaming, or deleting the resource.

Since:
1.13

Optional Element Summary
 boolean relative
          If true, consider the resource path to be relative to the current package.
 boolean searchClasspath
          If true, permit the resource to be in the classpath.
 

searchClasspath

public abstract boolean searchClasspath
If true, permit the resource to be in the classpath. By default, it may only be in the sourcepath.

Default:
false

relative

public abstract boolean relative
If true, consider the resource path to be relative to the current package. (../ sequences are permitted.) By default, it must be an absolute path (not starting with /).

Default:
false

org.netbeans.api.annotations.common/1 1.17.1

Built on June 6 2013.  |  Portions Copyright 1997-2013 Oracle. All rights reserved.