Compare commits
1 Commits
a1f571173b
...
94422354f8
Author | SHA1 | Date | |
---|---|---|---|
94422354f8 |
@ -9,8 +9,7 @@ open module org.atriasoft.ejson {
|
||||
exports org.atriasoft.ejson.model;
|
||||
exports org.atriasoft.ejson.exception;
|
||||
exports org.atriasoft.ejson.builder;
|
||||
exports org.atriasoft.ejson.parser;
|
||||
exports org.atriasoft.ejson.annotation;
|
||||
exports org.atriasoft.ejson.parser;
|
||||
|
||||
requires transitive org.atriasoft.etk;
|
||||
requires transitive io.scenarium.logger;
|
||||
|
@ -1,19 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Meta-annotation (annotations used on other annotations)
|
||||
* used for marking all annotations that are
|
||||
* part of Ejson package. Can be used for recognizing all
|
||||
* Ejson annotations generically, and in future also for
|
||||
* passing other generic annotation configuration.
|
||||
*/
|
||||
@Target(ElementType.ANNOTATION_TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface EjsonAnnotation {
|
||||
// for now, a pure tag annotation, no parameters
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Marker annotation that set the element are not managed by default. Need to add @JsonManaged to be enable.
|
||||
*
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@EjsonAnnotation
|
||||
public @interface JsonDefaultManaged {
|
||||
/**
|
||||
* Set this at false to remove all the field and the function from Json introspection
|
||||
* @return true if the element are by default managed.
|
||||
*/
|
||||
boolean value() default true;
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Marker annotation that set the element not found are ignored.
|
||||
*
|
||||
*/
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@EjsonAnnotation
|
||||
public @interface JsonDefaultOptional {
|
||||
/**
|
||||
* Set this at true to set all the element optional.
|
||||
* @return true if the element are by default optional.
|
||||
*/
|
||||
boolean value() default false;
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Marker annotation that force the json Parser to manage this element (used when the class is mark as @JsondefaultNotManaged).
|
||||
*
|
||||
*/
|
||||
@Target({ ElementType.FIELD, ElementType.METHOD })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@EjsonAnnotation
|
||||
public @interface JsonManaged {
|
||||
/**
|
||||
* Set this at false to remove this function or this field form the XML parsing system
|
||||
* @return true if the element is managed.
|
||||
*/
|
||||
boolean value() default true;
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Marker annotation that can be used to define an other name of the attribute or the Element name.
|
||||
*
|
||||
*/
|
||||
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@EjsonAnnotation
|
||||
public @interface JsonName {
|
||||
|
||||
/**
|
||||
* Names of the property of the Element name
|
||||
* @note The first name if the default generated in serialization.
|
||||
* @return The list the the possible names
|
||||
*/
|
||||
String[] value();
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package org.atriasoft.ejson.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Marker annotation that to ignore the element if not present in the XML, the default case the parser throw a missing error.
|
||||
*
|
||||
*/
|
||||
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@EjsonAnnotation
|
||||
public @interface JsonOptional {
|
||||
/**
|
||||
* Set if the element is optional or not. If optional, the parser does not throw error if the element is not declared.
|
||||
* @return thru if optional
|
||||
*/
|
||||
boolean value() default true;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user