Java 类javax.json.bind.annotation.JsonbCreator 实例源码

项目:Java-EE-8-Sampler    文件:Magazine.java   
@JsonbCreator
public Magazine(@JsonbProperty("bookTitle") String title,
                @JsonbProperty("firstName") String firstName,
                @JsonbProperty("surname") String lastName) {
    this.title = title;
    this.authorName = new Author(firstName, lastName);
}
项目:Java-EE-8-Sampler    文件:Book.java   
@JsonbCreator
public static Book createBook(@JsonbProperty("id") String id,
                              @JsonbProperty("title") String title,
                              @JsonbProperty("author") String author) {
    return new Book(id, title, author);
}
项目:yasson    文件:CreatorPackagePrivateConstructor.java   
@JsonbCreator
CreatorPackagePrivateConstructor(@JsonbProperty("intVal") int intVal) {
    this.intVal = intVal;
}
项目:yasson    文件:CreatorWithoutJavabeanProperty.java   
@JsonbCreator
public CreatorWithoutJavabeanProperty(@JsonbProperty("s1") String s1, @JsonbProperty("s2") String s2) {
    this.strField = s1 + s2;
}
项目:yasson    文件:CreatorWithoutJsonbProperty.java   
@JsonbCreator
public CreatorWithoutJsonbProperty(@JsonbProperty("s1") String par1, String par2, double d1) {
    this.par1 = par1;
    this.par2 = par2;
    this.par3 = d1;
}
项目:yasson    文件:CreatorWithoutJsonbProperty1.java   
@JsonbCreator
public CreatorWithoutJsonbProperty1(String par1, @JsonbProperty("s2") String par2, byte par3) {
    this.par1 = par1;
    this.par2 = par2;
    this.par3 = par3;
}
项目:yasson    文件:CreatorConstructorPojo.java   
@JsonbCreator
public CreatorConstructorPojo(@JsonbProperty("str1") String str1, @JsonbProperty("str2") String str2) {
    this.str1 = str1;
    this.str2 = str2;
}
项目:yasson    文件:CreatorIncompatibleTypePojo.java   
@JsonbCreator
public static Serializable getInstance() {
    return null;
}
项目:yasson    文件:CreatorMultipleDeclarationErrorPojo.java   
@JsonbCreator
public CreatorMultipleDeclarationErrorPojo(@JsonbProperty("val1") String s1) {
    this.s1 = s1;
}
项目:yasson    文件:CreatorMultipleDeclarationErrorPojo.java   
@JsonbCreator
public static CreatorMultipleDeclarationErrorPojo getInstance() {
    return null;
}
项目:yasson    文件:CreatorFactoryMethodPojo.java   
@JsonbCreator
public static CreatorFactoryMethodPojo getInstance(@JsonbProperty("par1") String str1, @JsonbProperty("par2")String str2) {
    return new CreatorFactoryMethodPojo(str1, str2);
}
项目:yasson    文件:JsonbCreatorTest.java   
@JsonbCreator
public DateConstructor(@JsonbProperty("localDate") @JsonbDateFormat(value = "dd-MM-yyyy", locale = "nl-NL") LocalDate localDate) {
    this.localDate = localDate;
}
项目:yasson    文件:JsonbCreatorTest.java   
@JsonbCreator
public DateConstructorMergedWithProperty(@JsonbProperty("localDate") LocalDate localDate) {
    this.localDate = localDate;
}
项目:yasson    文件:JsonbCreatorTest.java   
@JsonbCreator
public static FactoryNumberParam createInstance(
        @JsonbProperty("number") @JsonbNumberFormat(value = "000.000", locale = "en-us")
                BigDecimal number) {
    return new FactoryNumberParam(number);
}
项目:yasson    文件:JsonbCreatorTest.java   
@JsonbCreator
public static FactoryNumberParamMergedWithProperty createInstance(@JsonbProperty("number") BigDecimal number) {
    return new FactoryNumberParamMergedWithProperty(number);
}