Class ServerRequestType.Body
- java.lang.Object
-
- com.consol.citrus.model.testcase.http.ServerRequestType.Body
-
- Enclosing class:
- ServerRequestType
public static class ServerRequestType.Body extends Object
Java-Klasse für anonymous complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice minOccurs="0"> <element name="payload"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any processContents='skip' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="data" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="resource"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="file" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="charset" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> </choice> <element name="validate" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="script" minOccurs="0"> <complexType> <simpleContent> <extension base="<http://www.w3.org/2001/XMLSchema>string"> <attribute name="type" use="required"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="groovy"/> </restriction> </simpleType> </attribute> <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </simpleContent> </complexType> </element> <element name="xpath" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="expression" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="result-type"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="node"/> <enumeration value="node-set"/> <enumeration value="boolean"/> <enumeration value="string"/> <enumeration value="number"/> </restriction> </simpleType> </attribute> </restriction> </complexContent> </complexType> </element> <element name="json-path" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="expression" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> <element name="namespace" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="prefix" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="path" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="result-type"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="node"/> <enumeration value="node-set"/> <enumeration value="boolean"/> <enumeration value="string"/> <enumeration value="number"/> </restriction> </simpleType> </attribute> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="schema-validation" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="schema-repository" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="validator" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="data-dictionary" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="xml" /> </restriction> </complexContent> </complexType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerRequestType.Body.PayloadJava-Klasse für anonymous complex type.static classServerRequestType.Body.ResourceJava-Klasse für anonymous complex type.static classServerRequestType.Body.ValidateJava-Klasse für anonymous complex type.
-
Field Summary
Fields Modifier and Type Field Description protected Stringdataprotected StringdataDictionaryprotected Stringnameprotected ServerRequestType.Body.Payloadpayloadprotected ServerRequestType.Body.Resourceresourceprotected Stringschemaprotected StringschemaRepositoryprotected BooleanschemaValidationprotected Stringtypeprotected List<ServerRequestType.Body.Validate>validatesprotected Stringvalidator
-
Constructor Summary
Constructors Constructor Description Body()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetData()Ruft den Wert der data-Eigenschaft ab.StringgetDataDictionary()Ruft den Wert der dataDictionary-Eigenschaft ab.StringgetName()Ruft den Wert der name-Eigenschaft ab.ServerRequestType.Body.PayloadgetPayload()Ruft den Wert der payload-Eigenschaft ab.ServerRequestType.Body.ResourcegetResource()Ruft den Wert der resource-Eigenschaft ab.StringgetSchema()Ruft den Wert der schema-Eigenschaft ab.StringgetSchemaRepository()Ruft den Wert der schemaRepository-Eigenschaft ab.StringgetType()Ruft den Wert der type-Eigenschaft ab.List<ServerRequestType.Body.Validate>getValidates()Gets the value of the validates property.StringgetValidator()Ruft den Wert der validator-Eigenschaft ab.BooleanisSchemaValidation()Ruft den Wert der schemaValidation-Eigenschaft ab.voidsetData(String value)Legt den Wert der data-Eigenschaft fest.voidsetDataDictionary(String value)Legt den Wert der dataDictionary-Eigenschaft fest.voidsetName(String value)Legt den Wert der name-Eigenschaft fest.voidsetPayload(ServerRequestType.Body.Payload value)Legt den Wert der payload-Eigenschaft fest.voidsetResource(ServerRequestType.Body.Resource value)Legt den Wert der resource-Eigenschaft fest.voidsetSchema(String value)Legt den Wert der schema-Eigenschaft fest.voidsetSchemaRepository(String value)Legt den Wert der schemaRepository-Eigenschaft fest.voidsetSchemaValidation(Boolean value)Legt den Wert der schemaValidation-Eigenschaft fest.voidsetType(String value)Legt den Wert der type-Eigenschaft fest.voidsetValidator(String value)Legt den Wert der validator-Eigenschaft fest.
-
-
-
Field Detail
-
resource
protected ServerRequestType.Body.Resource resource
-
data
protected String data
-
payload
protected ServerRequestType.Body.Payload payload
-
validates
protected List<ServerRequestType.Body.Validate> validates
-
schemaValidation
protected Boolean schemaValidation
-
schema
protected String schema
-
schemaRepository
protected String schemaRepository
-
validator
protected String validator
-
dataDictionary
protected String dataDictionary
-
name
protected String name
-
type
protected String type
-
-
Method Detail
-
getResource
public ServerRequestType.Body.Resource getResource()
Ruft den Wert der resource-Eigenschaft ab.- Returns:
- possible object is
ServerRequestType.Body.Resource
-
setResource
public void setResource(ServerRequestType.Body.Resource value)
Legt den Wert der resource-Eigenschaft fest.- Parameters:
value- allowed object isServerRequestType.Body.Resource
-
getData
public String getData()
Ruft den Wert der data-Eigenschaft ab.- Returns:
- possible object is
String
-
setData
public void setData(String value)
Legt den Wert der data-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getPayload
public ServerRequestType.Body.Payload getPayload()
Ruft den Wert der payload-Eigenschaft ab.- Returns:
- possible object is
ServerRequestType.Body.Payload
-
setPayload
public void setPayload(ServerRequestType.Body.Payload value)
Legt den Wert der payload-Eigenschaft fest.- Parameters:
value- allowed object isServerRequestType.Body.Payload
-
getValidates
public List<ServerRequestType.Body.Validate> getValidates()
Gets the value of the validates property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the validates property.For example, to add a new item, do as follows:
getValidates().add(newItem);Objects of the following type(s) are allowed in the list
ServerRequestType.Body.Validate
-
isSchemaValidation
public Boolean isSchemaValidation()
Ruft den Wert der schemaValidation-Eigenschaft ab.- Returns:
- possible object is
Boolean
-
setSchemaValidation
public void setSchemaValidation(Boolean value)
Legt den Wert der schemaValidation-Eigenschaft fest.- Parameters:
value- allowed object isBoolean
-
getSchema
public String getSchema()
Ruft den Wert der schema-Eigenschaft ab.- Returns:
- possible object is
String
-
setSchema
public void setSchema(String value)
Legt den Wert der schema-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getSchemaRepository
public String getSchemaRepository()
Ruft den Wert der schemaRepository-Eigenschaft ab.- Returns:
- possible object is
String
-
setSchemaRepository
public void setSchemaRepository(String value)
Legt den Wert der schemaRepository-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getValidator
public String getValidator()
Ruft den Wert der validator-Eigenschaft ab.- Returns:
- possible object is
String
-
setValidator
public void setValidator(String value)
Legt den Wert der validator-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getDataDictionary
public String getDataDictionary()
Ruft den Wert der dataDictionary-Eigenschaft ab.- Returns:
- possible object is
String
-
setDataDictionary
public void setDataDictionary(String value)
Legt den Wert der dataDictionary-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getName
public String getName()
Ruft den Wert der name-Eigenschaft ab.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Legt den Wert der name-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getType
public String getType()
Ruft den Wert der type-Eigenschaft ab.- Returns:
- possible object is
String
-
-