Package org.hl7.fhir.r5.comparison
Class StructuralMatch<T>
- java.lang.Object
-
- org.hl7.fhir.r5.comparison.StructuralMatch<T>
-
public class StructuralMatch<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description StructuralMatch()StructuralMatch(org.hl7.fhir.utilities.validation.ValidationMessage msg, T right)StructuralMatch(T left, org.hl7.fhir.utilities.validation.ValidationMessage msg)StructuralMatch(T left, T right)StructuralMatch(T left, T right, org.hl7.fhir.utilities.validation.ValidationMessage msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountMessages(ResourceComparer.MessageCounts cnts)Teither()return left if it exists, or return right (which might be null) This is used when accessing whatever makes the items commonList<StructuralMatch<T>>getChildren()TgetLeft()List<org.hl7.fhir.utilities.validation.ValidationMessage>getMessages()StringgetName()TgetRight()booleanhasErrors()booleanhasLeft()booleanhasRight()StructuralMatch<T>setName(String name)
-
-
-
Constructor Detail
-
StructuralMatch
public StructuralMatch()
-
StructuralMatch
public StructuralMatch(T left, T right)
-
StructuralMatch
public StructuralMatch(T left, T right, org.hl7.fhir.utilities.validation.ValidationMessage msg)
-
StructuralMatch
public StructuralMatch(org.hl7.fhir.utilities.validation.ValidationMessage msg, T right)
-
StructuralMatch
public StructuralMatch(T left, org.hl7.fhir.utilities.validation.ValidationMessage msg)
-
-
Method Detail
-
getChildren
public List<StructuralMatch<T>> getChildren()
-
either
public T either()
return left if it exists, or return right (which might be null) This is used when accessing whatever makes the items common- Returns:
-
hasLeft
public boolean hasLeft()
-
hasRight
public boolean hasRight()
-
getMessages
public List<org.hl7.fhir.utilities.validation.ValidationMessage> getMessages()
-
hasErrors
public boolean hasErrors()
-
countMessages
public void countMessages(ResourceComparer.MessageCounts cnts)
-
setName
public StructuralMatch<T> setName(String name)
-
-