
sdmxdl.CodelistRef Maven / Gradle / Ivy
package sdmxdl;
import lombok.AccessLevel;
import nbbrd.design.StaticFactoryMethod;
import nbbrd.design.StringValue;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
@StringValue
@lombok.Value
@lombok.AllArgsConstructor(access = AccessLevel.PRIVATE)
@lombok.EqualsAndHashCode(callSuper = false)
public class CodelistRef extends ResourceRef {
@lombok.NonNull
String agency;
@lombok.NonNull
String id;
@lombok.NonNull
String version;
@Override
public String toString() {
return toString(this);
}
@StaticFactoryMethod
@NonNull
public static CodelistRef parse(@NonNull CharSequence input) throws IllegalArgumentException {
return parse(input, CodelistRef::new);
}
@StaticFactoryMethod
@NonNull
public static CodelistRef of(@Nullable String agency, @NonNull String id, @Nullable String version) throws IllegalArgumentException {
return of(agency, id, version, CodelistRef::new);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy