28 lines
677 B
Java
28 lines
677 B
Java
package be.seeseepuff.pcinv.meta;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* An annotation to mark a property descriptor of an asset.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.FIELD)
|
|
public @interface Property {
|
|
/**
|
|
* The displayable name of the property.
|
|
*
|
|
* @return the display name of the property
|
|
*/
|
|
String value();
|
|
|
|
/**
|
|
* Whether the property is required for the asset.
|
|
*
|
|
* @return true if the property is required, false otherwise
|
|
*/
|
|
boolean required() default false;
|
|
}
|