public abstract class BaseGraphQLQuery extends Object implements Serializable, IGraphQLQuery
| Constructor and Description |
|---|
BaseGraphQLQuery(String operationName,
ObjectDataSenderBuilder queryObject)
Constructor, passing in everything required to build the query
|
public BaseGraphQLQuery(String operationName, ObjectDataSenderBuilder queryObject)
operationName - String, operation namequeryObject - ObjectDataSenderBuilder containing the query settingspublic String getOperationName()
getOperationName in interface IGraphQLQuerypublic ObjectDataSenderBuilder getQueryObject()
getQueryObject in interface IGraphQLQuerypublic String returnQuery()
IGraphQLQueryreturnQuery in interface IGraphQLQuerypublic String getObjectName()
IGraphQLQueryObjectDataSenderBuilder.getObjectName()getObjectName in interface IGraphQLQuerypublic void setObjectName(String objectName)
IGraphQLQueryObjectDataSenderBuilder.setObjectName(String)setObjectName in interface IGraphQLQueryobjectName - the objectName property from queryObject propertypublic boolean isHasItems()
IGraphQLQueryObjectDataSenderBuilder.isHasItems()isHasItems in interface IGraphQLQuerypublic ObjectDataSenderBuilder setHasItems(boolean hasItems)
IGraphQLQueryObjectDataSenderBuilder.setHasItems(boolean)setHasItems in interface IGraphQLQueryhasItems - whether queryObject includes an items level in returned JSONpublic List<String> getFieldsList()
IGraphQLQueryObjectDataSenderBuilder.getFieldsList()getFieldsList in interface IGraphQLQuerypublic void setFieldsList(List<String> fieldsList)
IGraphQLQueryObjectDataSenderBuilder.setFieldsList(List)setFieldsList in interface IGraphQLQueryfieldsList - List of String fields in the queryObject of this Querypublic ObjectDataSenderBuilder addField(String field)
IGraphQLQueryObjectDataSenderBuilder.addField(String)addField in interface IGraphQLQueryfield - String field to add to the queryObject of this Querypublic ObjectDataSenderBuilder addField(WWFieldsAttributesInterface field)
IGraphQLQueryObjectDataSenderBuilder.addField(WWFieldsAttributesInterface)addField in interface IGraphQLQueryfield - WWFIeldAttributesInterface field to add to the queryObject of this Querypublic ObjectDataSenderBuilder removeField(String field)
IGraphQLQueryObjectDataSenderBuilder.removeField(String)removeField in interface IGraphQLQueryfield - String field to remove from the queryObject of this Querypublic ObjectDataSenderBuilder removeField(WWFieldsAttributesInterface field)
IGraphQLQueryObjectDataSenderBuilder.removeField(WWFieldsAttributesInterface)removeField in interface IGraphQLQueryfield - WWFieldsAttributesInterface field to remove from the queryObject of this Querypublic Map<String,Object> getAttributesList()
getAttributesList in interface IGraphQLQuerypublic ObjectDataSenderBuilder setAttributesList(Map<String,Object> attributesList)
IGraphQLQueryObjectDataSenderBuilder.setAttributesList(Map)setAttributesList in interface IGraphQLQueryattributesList - Map of attributes used to filter the queryObject of this Querypublic ObjectDataSenderBuilder addAttribute(String key, Object value)
IGraphQLQueryObjectDataSenderBuilder.addAttribute(String, Object)addAttribute in interface IGraphQLQuerykey - String, attribute name to filter the queryObject of this Queryvalue - Object, value to filter the queryObject of this Querypublic ObjectDataSenderBuilder addAttribute(WWFieldsAttributesInterface enumName, Object value) throws WWException
IGraphQLQueryObjectDataSenderBuilder.addAttribute(WWFieldsAttributesInterface, Object)addAttribute in interface IGraphQLQueryenumName - enum, from which label property will give attribute name to filter the queryObject of this Queryvalue - Object, value to filter the queryObject of this QueryWWException - containing an error message, if the value is a different data type to what the enum expectspublic ObjectDataSenderBuilder removeAttribute(String key)
IGraphQLQueryObjectDataSenderBuilder.removeAttribute(String)removeAttribute in interface IGraphQLQuerykey - String, attribute name to filter the queryObject of this Querypublic ObjectDataSenderBuilder removeAttribute(WWFieldsAttributesInterface enumName)
IGraphQLQueryObjectDataSenderBuilder.removeAttribute(WWFieldsAttributesInterface)removeAttribute in interface IGraphQLQueryenumName - enum, from which label property will give attribute name to filter the queryObject of this Querypublic List<IDataSenderBuilder> getChildren()
IGraphQLQueryObjectDataSenderBuilder.getChildren()getChildren in interface IGraphQLQuerypublic ObjectDataSenderBuilder setChildren(List<IDataSenderBuilder> children)
IGraphQLQueryObjectDataSenderBuilder.setChildren(List)setChildren in interface IGraphQLQuerychildren - List of DataSenderBuilders corresponding to the children of the queryObject of this Querypublic ObjectDataSenderBuilder addChild(IDataSenderBuilder child)
IGraphQLQueryObjectDataSenderBuilder.addChild(IDataSenderBuilder)addChild in interface IGraphQLQuerychild - DataSenderBuilder for the child to be added to the queryObject of this Querypublic ObjectDataSenderBuilder removeChild(IDataSenderBuilder child)
IGraphQLQueryObjectDataSenderBuilder.removeChild(IDataSenderBuilder)removeChild in interface IGraphQLQuerychild - DataSenderBuilder for the child to be removed from the queryObject of this Querypublic ObjectDataSenderBuilder addPageInfo()
IGraphQLQueryObjectDataSenderBuilder.addPageInfo()addPageInfo in interface IGraphQLQuerypublic ObjectDataSenderBuilder addPageInfo(ObjectDataSenderBuilder pageInfoCustom)
IGraphQLQueryObjectDataSenderBuilder.addPageInfo(ObjectDataSenderBuilder)addPageInfo in interface IGraphQLQuerypageInfoCustom - ObjectDataSenderBuilder containing the custom pageInfo fields to return from the queryObject of this Querypublic ObjectDataSenderBuilder removePageInfo()
IGraphQLQueryObjectDataSenderBuilder.removePageInfo()removePageInfo in interface IGraphQLQueryCopyright © 2018 OpenNTF. All rights reserved.