
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringTypeText that can be used to describe the constraint in messages identifying that the constraint has been violated.protected IdTypeAllows identification of which elements have their cardinalities impacted by the constraint.protected StringTypeDescription of why this constraint is necessary or appropriate.protected Enumeration<ElementDefinition.ConstraintSeverity> Identifies the impact constraint violation has on the conformance of the instance.protected StringTypeAn XPath expression of constraint that can be executed to see if this constraint is met. -
Constructor Summary
ConstructorsConstructorDescriptionElementDefinitionConstraintComponent(IdType key, Enumeration<ElementDefinition.ConstraintSeverity> severity, StringType human, StringType xpath) -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getHuman()getKey()getXpath()booleanhasHuman()booleanbooleanhasKey()booleanbooleanbooleanbooleanbooleanbooleanhasXpath()booleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) setHumanElement(StringType value) setKeyElement(IdType value) voidsetProperty(String name, Base value) setRequirements(String value) setRequirementsElement(StringType value) setXpathElement(StringType value) Methods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementMethods 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, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
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
Description of why this constraint is necessary or appropriate. -
severity
Identifies the impact constraint violation has on the conformance of the instance. -
human
Text that can be used to describe the constraint in messages identifying that the constraint has been violated. -
xpath
An XPath expression of constraint that can be executed to see if this constraint is met.
-
-
Constructor Details
-
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent() -
ElementDefinitionConstraintComponent
public ElementDefinitionConstraintComponent(IdType key, Enumeration<ElementDefinition.ConstraintSeverity> severity, StringType human, StringType xpath)
-
-
Method Details
-
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
-
hasKey
-
setKeyElement
- 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
- 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
- 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
- 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
-
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
- Returns:
- Description of why this constraint is necessary or appropriate.
-
setRequirements
- Parameters:
value- Description of why this constraint is necessary or appropriate.
-
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
-
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
- 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
- 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
-
hasHuman
-
setHumanElement
- 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
- Returns:
- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
setHuman
- Parameters:
value- Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
-
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
-
hasXpath
-
setXpathElement
- 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
- Returns:
- An XPath expression of constraint that can be executed to see if this constraint is met.
-
setXpath
- Parameters:
value- An XPath expression of constraint that can be executed to see if this constraint is met.
-
listChildren
- Overrides:
listChildrenin classElement
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
copy
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-
fhirType
-