public abstract class AbstractCompositeTypeRule<T extends ca.uhn.hl7v2.model.Composite> extends CompositeTypeRule<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
EUI_64_PATTERN
Deprecated.
|
| Constructor and Description |
|---|
AbstractCompositeTypeRule(Class<T> compositeTypeClass)
Deprecated.
|
AbstractCompositeTypeRule(Class<T> compositeTypeClass,
String description)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.hl7v2.validation.ValidationException[] |
apply(ca.uhn.hl7v2.model.Composite composite)
Deprecated.
|
ca.uhn.hl7v2.validation.ValidationException[] |
apply(T composite,
ca.uhn.hl7v2.Location location)
Deprecated.
|
ca.uhn.hl7v2.validation.ValidationException |
enforce(ca.uhn.hl7v2.validation.builder.Predicate p,
T element,
int component)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
String |
getDescription()
Deprecated.
|
String |
getSectionReference()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isEmpty(T element,
int component)
Deprecated.
Returns true if the element at component is empty, false otherwise;
|
boolean |
isEqual(String expected,
T element,
int component)
Deprecated.
|
boolean |
isNonEmpty(T element,
int component)
Deprecated.
|
boolean |
matches(Class<? extends ca.uhn.hl7v2.model.Composite> clazz)
Deprecated.
Returns if the rule should check the given class.
|
protected String |
msg(String prefix,
ca.uhn.hl7v2.model.Composite element,
int component,
String path)
Deprecated.
|
protected String |
val(T element,
int component)
Deprecated.
|
abstract ca.uhn.hl7v2.validation.ValidationException[] |
validate(T struct,
ca.uhn.hl7v2.Location location)
Deprecated.
|
protected AbstractCompositeTypeRule |
validate(ca.uhn.hl7v2.validation.ValidationException e,
ca.uhn.hl7v2.Location l,
Collection<ca.uhn.hl7v2.validation.ValidationException> violations)
Deprecated.
|
protected ca.uhn.hl7v2.validation.ValidationException |
violation(String msg)
Deprecated.
|
protected ca.uhn.hl7v2.validation.ValidationException[] |
violations(Object value,
ca.uhn.hl7v2.Location location)
Deprecated.
|
allOf, allOf, always, alwaysFails, anyOf, anyOf, date, dateTime, dateTime25, empty, emptyOr, in, in, isEqual, isEqualIgnoreCase, matches, matches, matches, maxLength, nonNegativeInteger, not, number, oid, startsWith, time, usPhoneNumber, uuid, withdrawnpublic static final String EUI_64_PATTERN
public String getDescription()
public boolean matches(Class<? extends ca.uhn.hl7v2.model.Composite> clazz)
CompositeTypeRulematches in class CompositeTypeRule<T extends ca.uhn.hl7v2.model.Composite>public String getSectionReference()
public ca.uhn.hl7v2.validation.ValidationException[] apply(ca.uhn.hl7v2.model.Composite composite)
public ca.uhn.hl7v2.validation.ValidationException[] apply(T composite, ca.uhn.hl7v2.Location location)
apply in class CompositeTypeRule<T extends ca.uhn.hl7v2.model.Composite>public abstract ca.uhn.hl7v2.validation.ValidationException[] validate(T struct, ca.uhn.hl7v2.Location location)
protected ca.uhn.hl7v2.validation.ValidationException[] violations(Object value, ca.uhn.hl7v2.Location location)
public boolean isEmpty(T element, int component)
element - a Composite instancecomponent - (starting at 1)true if the element at component is empty,
false otherwise;public boolean isNonEmpty(T element, int component)
public ca.uhn.hl7v2.validation.ValidationException enforce(ca.uhn.hl7v2.validation.builder.Predicate p,
T element,
int component)
protected AbstractCompositeTypeRule validate(ca.uhn.hl7v2.validation.ValidationException e, ca.uhn.hl7v2.Location l, Collection<ca.uhn.hl7v2.validation.ValidationException> violations)
protected ca.uhn.hl7v2.validation.ValidationException violation(String msg)
protected String msg(String prefix, ca.uhn.hl7v2.model.Composite element, int component, String path)
Copyright © 2016 Open eHealth Foundation. All rights reserved.