|
org.netbeans.modules.settings/1 1.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=SOURCE) @Target(value=TYPE) public @interface ConvertAsProperties
Annotation to attach to object that is wishing to support conversion from
and to Properties
. More info about the format and protocol
is available in separate document,
here is the shortest possible howto:
@
ConvertAsProperties(dtd="-//Your Org//Your Setting//EN")
public class YourObject {
public YourObject() {} // public constructor is a must
void readProperties(java.util.Properties p) {
// do the read
}
void writeProperties(java.util.Properties p) {
// handle the store
}
}
Required Element Summary | |
---|---|
String |
dtd
Public ID of the XML file that results in creation of the annotated type and to which the annotated type can be converted. |
Optional Element Summary | |
---|---|
boolean |
autostore
Shall every change in the object result in save? Or shall the object just be marked as dirty? |
String[] |
ignoreChanges
An array of properties that are ignored without marking the object as dirty or saving it. |
Element Detail |
---|
public abstract String dtd
public abstract boolean autostore
public abstract String[] ignoreChanges
IGNORE_ALL_CHANGES
to ignore all properties
|
org.netbeans.modules.settings/1 1.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |