org.cqframework.cql.elm.execution.SplitOnMatches Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.09.30 at 08:06:11 PM UTC
//
package org.cqframework.cql.elm.execution;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* The SplitOnMatches operator splits a string into a list of strings using matches of a regex pattern.
*
* The separatorPattern argument is a regex pattern, following the same semantics as the Matches operator.
*
* If the stringToSplit argument is null, the result is null.
*
* If the stringToSplit argument does not contain any appearances of the separator pattern, the result is a list of strings containing one element that is the input value of the stringToSplit argument.
*
* Java class for SplitOnMatches complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SplitOnMatches">
* <complexContent>
* <extension base="{urn:hl7-org:elm:r1}OperatorExpression">
* <sequence>
* <element name="stringToSplit" type="{urn:hl7-org:elm:r1}Expression"/>
* <element name="separatorPattern" type="{urn:hl7-org:elm:r1}Expression"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SplitOnMatches", namespace = "urn:hl7-org:elm:r1", propOrder = {
"stringToSplit",
"separatorPattern"
})
@SuppressWarnings({
"all"
})
public class SplitOnMatches
extends OperatorExpression
implements Equals2, HashCode2, ToString2
{
@XmlElement(namespace = "urn:hl7-org:elm:r1", required = true)
protected Expression stringToSplit;
@XmlElement(namespace = "urn:hl7-org:elm:r1", required = true)
protected Expression separatorPattern;
/**
* Gets the value of the stringToSplit property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getStringToSplit() {
return stringToSplit;
}
/**
* Sets the value of the stringToSplit property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setStringToSplit(Expression value) {
this.stringToSplit = value;
}
/**
* Gets the value of the separatorPattern property.
*
* @return
* possible object is
* {@link Expression }
*
*/
public Expression getSeparatorPattern() {
return separatorPattern;
}
/**
* Sets the value of the separatorPattern property.
*
* @param value
* allowed object is
* {@link Expression }
*
*/
public void setSeparatorPattern(Expression value) {
this.separatorPattern = value;
}
public SplitOnMatches withStringToSplit(Expression value) {
setStringToSplit(value);
return this;
}
public SplitOnMatches withSeparatorPattern(Expression value) {
setSeparatorPattern(value);
return this;
}
@Override
public SplitOnMatches withSignature(TypeSpecifier... values) {
if (values!= null) {
for (TypeSpecifier value: values) {
getSignature().add(value);
}
}
return this;
}
@Override
public SplitOnMatches withSignature(Collection values) {
if (values!= null) {
getSignature().addAll(values);
}
return this;
}
@Override
public SplitOnMatches withAnnotation(Object... values) {
if (values!= null) {
for (Object value: values) {
getAnnotation().add(value);
}
}
return this;
}
@Override
public SplitOnMatches withAnnotation(Collection