All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.org.consumerdatastandards.api.common.models.CommonPhysicalAddress Maven / Gradle / Ivy

Go to download

This artefact describes the Consumer Data Standards using Java classes and annotations in a way suitable for automatic generation of Open API Specification, documentation, Server Stub, Client Libraries and Reference Test.

There is a newer version: 1.1.1
Show newest version
package au.org.consumerdatastandards.api.common.models;

import au.org.consumerdatastandards.support.data.*;

@DataDefinition
@CustomAttributes({
    @CustomAttribute(name = "x-conditional", value = "simple", multiple = true),
    @CustomAttribute(name = "x-conditional", value = "paf", multiple = true)
})
public class CommonPhysicalAddress {

    public enum AddressUType {
        simple,
        paf
    }

    @Property(
        description = "The type of address object present",
        required = true
    )
    AddressUType addressUType;

    @Property(
        requiredIf = { @Condition(propertyName = "addressUType", values = {"simple"}) },
        nullIf = { @Condition(propertyName = "addressUType", values = {"paf"}) }
    )
    CommonSimpleAddress simple;

    @Property(
        requiredIf = { @Condition(propertyName = "addressUType", values = {"paf"}) },
        nullIf = { @Condition(propertyName = "addressUType", values = {"simple"}) }
    )
    CommonPAFAddress paf;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy