Package org.hl7.fhir.dstu2.model
Class ElementDefinition.ElementDefinitionConstraintComponent
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.Element
-
- org.hl7.fhir.dstu2.model.ElementDefinition.ElementDefinitionConstraintComponent
-
- All Implemented Interfaces:
Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatypeElement,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions
- Enclosing class:
- ElementDefinition
public static class ElementDefinition.ElementDefinitionConstraintComponent extends Element implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringTypehumanText that can be used to describe the constraint in messages identifying that the constraint has been violated.protected IdTypekeyAllows identification of which elements have their cardinalities impacted by the constraint.protected StringTyperequirementsDescription of why this constraint is necessary or appropriate.protected Enumeration<ElementDefinition.ConstraintSeverity>severityIdentifies the impact constraint violation has on the conformance of the instance.protected StringTypexpathAn XPath expression of constraint that can be executed to see if this constraint is met.
-
Constructor Summary
Constructors Constructor Description ElementDefinitionConstraintComponent()ElementDefinitionConstraintComponent(IdType key, Enumeration<ElementDefinition.ConstraintSeverity> severity, StringType human, StringType xpath)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
key
protected IdType key
Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
-
requirements
protected StringType requirements
Description of why this constraint is necessary or appropriate.
-
severity
protected Enumeration<ElementDefinition.ConstraintSeverity> severity
Identifies the impact constraint violation has on the conformance of the instance.
-
human
protected StringType human
Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
xpath
protected StringType xpath
An XPath expression of constraint that can be executed to see if this constraint is met.
-
-
Constructor Detail
-
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent()
-
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent(IdType key, Enumeration<ElementDefinition.ConstraintSeverity> severity, StringType human, StringType xpath)
-
-
Method Detail
-
getKeyElement
public IdType getKeyElement()
- Returns:
key(Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.). This is the underlying object with id, value and extensions. The accessor "getKey" gives direct access to the value
-
hasKeyElement
public boolean hasKeyElement()
-
hasKey
public boolean hasKey()
-
setKeyElement
public ElementDefinition.ElementDefinitionConstraintComponent setKeyElement(IdType value)
- Parameters:
value-key(Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.). This is the underlying object with id, value and extensions. The accessor "getKey" gives direct access to the value
-
getKey
public String getKey()
- Returns:
- Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
-
setKey
public ElementDefinition.ElementDefinitionConstraintComponent setKey(String value)
- Parameters:
value- Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
-
getRequirementsElement
public StringType getRequirementsElement()
- Returns:
requirements(Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
hasRequirementsElement
public boolean hasRequirementsElement()
-
hasRequirements
public boolean hasRequirements()
-
setRequirementsElement
public ElementDefinition.ElementDefinitionConstraintComponent setRequirementsElement(StringType value)
- Parameters:
value-requirements(Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
-
getRequirements
public String getRequirements()
- Returns:
- Description of why this constraint is necessary or appropriate.
-
setRequirements
public ElementDefinition.ElementDefinitionConstraintComponent setRequirements(String value)
- Parameters:
value- Description of why this constraint is necessary or appropriate.
-
getSeverityElement
public Enumeration<ElementDefinition.ConstraintSeverity> getSeverityElement()
- Returns:
severity(Identifies the impact constraint violation has on the conformance of the instance.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
-
hasSeverityElement
public boolean hasSeverityElement()
-
hasSeverity
public boolean hasSeverity()
-
setSeverityElement
public ElementDefinition.ElementDefinitionConstraintComponent setSeverityElement(Enumeration<ElementDefinition.ConstraintSeverity> value)
- Parameters:
value-severity(Identifies the impact constraint violation has on the conformance of the instance.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
-
getSeverity
public ElementDefinition.ConstraintSeverity getSeverity()
- Returns:
- Identifies the impact constraint violation has on the conformance of the instance.
-
setSeverity
public ElementDefinition.ElementDefinitionConstraintComponent setSeverity(ElementDefinition.ConstraintSeverity value)
- Parameters:
value- Identifies the impact constraint violation has on the conformance of the instance.
-
getHumanElement
public StringType getHumanElement()
- Returns:
human(Text that can be used to describe the constraint in messages identifying that the constraint has been violated.). This is the underlying object with id, value and extensions. The accessor "getHuman" gives direct access to the value
-
hasHumanElement
public boolean hasHumanElement()
-
hasHuman
public boolean hasHuman()
-
setHumanElement
public ElementDefinition.ElementDefinitionConstraintComponent setHumanElement(StringType value)
- Parameters:
value-human(Text that can be used to describe the constraint in messages identifying that the constraint has been violated.). This is the underlying object with id, value and extensions. The accessor "getHuman" gives direct access to the value
-
getHuman
public String getHuman()
- Returns:
- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
setHuman
public ElementDefinition.ElementDefinitionConstraintComponent setHuman(String value)
- Parameters:
value- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
getXpathElement
public StringType getXpathElement()
- Returns:
xpath(An XPath expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getXpath" gives direct access to the value
-
hasXpathElement
public boolean hasXpathElement()
-
hasXpath
public boolean hasXpath()
-
setXpathElement
public ElementDefinition.ElementDefinitionConstraintComponent setXpathElement(StringType value)
- Parameters:
value-xpath(An XPath expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getXpath" gives direct access to the value
-
getXpath
public String getXpath()
- Returns:
- An XPath expression of constraint that can be executed to see if this constraint is met.
-
setXpath
public ElementDefinition.ElementDefinitionConstraintComponent setXpath(String value)
- Parameters:
value- An XPath expression of constraint that can be executed to see if this constraint is met.
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public ElementDefinition.ElementDefinitionConstraintComponent copy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
isEmpty
public boolean isEmpty()
-
-