Package org.hl7.elm_modelinfo.r1
Class ConstraintInfo
- java.lang.Object
-
- org.hl7.elm_modelinfo.r1.ConstraintInfo
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class ConstraintInfo extends java.lang.Object implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2The ConstraintInfo type models the definition of a constraint which can then be associated with a class info, class info element, or other model element.Java class for ConstraintInfo complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ConstraintInfo"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="expression" type="{urn:hl7-org:elm-modelinfo:r1}ExpressionInfo" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="severity" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.util.List<ExpressionInfo>expressionprotected java.lang.Stringmessageprotected java.lang.Stringnameprotected java.lang.Stringseverity
-
Constructor Summary
Constructors Constructor Description ConstraintInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.lang.StringgetDescription()Gets the value of the description property.java.util.List<ExpressionInfo>getExpression()Gets the value of the expression property.java.lang.StringgetMessage()Gets the value of the message property.java.lang.StringgetName()Gets the value of the name property.java.lang.StringgetSeverity()Gets the value of the severity property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetDescription(java.lang.String value)Sets the value of the description property.voidsetMessage(java.lang.String value)Sets the value of the message property.voidsetName(java.lang.String value)Sets the value of the name property.voidsetSeverity(java.lang.String value)Sets the value of the severity property.java.lang.StringtoString()ConstraintInfowithDescription(java.lang.String value)ConstraintInfowithExpression(java.util.Collection<ExpressionInfo> values)ConstraintInfowithExpression(ExpressionInfo... values)ConstraintInfowithMessage(java.lang.String value)ConstraintInfowithName(java.lang.String value)ConstraintInfowithSeverity(java.lang.String value)
-
-
-
Field Detail
-
expression
protected java.util.List<ExpressionInfo> expression
-
name
protected java.lang.String name
-
severity
protected java.lang.String severity
-
description
protected java.lang.String description
-
message
protected java.lang.String message
-
-
Method Detail
-
getExpression
public java.util.List<ExpressionInfo> getExpression()
Gets the value of the expression property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the expression property.For example, to add a new item, do as follows:
getExpression().add(newItem);Objects of the following type(s) are allowed in the list
ExpressionInfo
-
getName
public java.lang.String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getSeverity
public java.lang.String getSeverity()
Gets the value of the severity property.- Returns:
- possible object is
String
-
setSeverity
public void setSeverity(java.lang.String value)
Sets the value of the severity property.- Parameters:
value- allowed object isString
-
getDescription
public java.lang.String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getMessage
public java.lang.String getMessage()
Gets the value of the message property.- Returns:
- possible object is
String
-
setMessage
public void setMessage(java.lang.String value)
Sets the value of the message property.- Parameters:
value- allowed object isString
-
withExpression
public ConstraintInfo withExpression(ExpressionInfo... values)
-
withExpression
public ConstraintInfo withExpression(java.util.Collection<ExpressionInfo> values)
-
withName
public ConstraintInfo withName(java.lang.String value)
-
withSeverity
public ConstraintInfo withSeverity(java.lang.String value)
-
withDescription
public ConstraintInfo withDescription(java.lang.String value)
-
withMessage
public ConstraintInfo withMessage(java.lang.String value)
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2
-
-