public class QuerySegment extends Object implements Serializable, IExtensible
type:name=format:value. Name is required.
Values with format string must begin and end with single quote. single quotes in payload require a backslash as escapesequence .
Values with format json must begin with { and end with } .
| Constructor and Description |
|---|
QuerySegment(String expression,
String type,
String name,
String format,
String value)
constructor for query segment
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtension(IExtension<?> extension)
Append an extension for this query segment
|
String |
getExpression()
getter for representative string for query segment (type,name,format,value and extensions)
|
IExtension<?> |
getExtension(String type)
getter for single extension
|
List<IExtension<?>> |
getExtensionList()
getter for all extensions
|
List<IExtension<?>> |
getExtensionList(String type)
getter for extension list of defined type
|
String |
getFormat()
getter for format
|
String |
getName()
getter for name
|
String |
getType()
getter for type
|
String |
getValue()
getter for value
|
protected void |
setExpression(String expression)
setter for expression string
|
public QuerySegment(String expression, String type, String name, String format, String value)
expression - representative string value query segmenttype - the type of segment (not required)name - the name of segmentformat - the format of segment (not required / null, json or string)value - the value of segmentprotected void setExpression(String expression)
expression - protected void addExtension(IExtension<?> extension)
extension - public IExtension<?> getExtension(String type)
IExtensiblegetExtension in interface IExtensibletype - extensiontypepublic List<IExtension<?>> getExtensionList()
IExtensiblegetExtensionList in interface IExtensiblepublic List<IExtension<?>> getExtensionList(String type)
IExtensiblegetExtensionList in interface IExtensibletype - filterpublic String getExpression()
public String getType()
public String getName()
public String getFormat()
public String getValue()
Copyright © 2020. All rights reserved.