public class ObjectDefinition extends Object implements Serializable
Java class for ObjectDefinition complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ObjectDefinition"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <any processContents='lax'/> <element name="cookie" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="extraSchema" type="{}ExtraSchema" maxOccurs="unbounded" minOccurs="0"/> <element name="extraSchemas" type="{}ExtraSchemas" minOccurs="0"/> <element name="jsonSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <sequence> <element name="fieldSpecFields" type="{}FieldSpecField" maxOccurs="unbounded" minOccurs="0"/> </sequence> </sequence> <attribute name="elementName" type="{http://www.w3.org/2001/XMLSchema}normalizedString" /> <attribute name="respectMinOccurs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="inputType" type="{}ContentType" default="xml" /> <attribute name="outputType" type="{}ContentType" default="xml" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected String |
cookie |
protected String |
elementName |
static ObjectDefinition |
EMPTY_INSTANCE |
protected List<ExtraSchema> |
extraSchemaList |
protected ExtraSchemas |
extraSchemas |
protected List<FieldSpecField> |
fieldSpecFields |
protected ContentType |
inputType |
protected String |
jsonSchema |
protected ContentType |
outputType |
protected Boolean |
respectMinOccurs |
protected Element |
schema |
Constructor and Description |
---|
ObjectDefinition() |
Modifier and Type | Method and Description |
---|---|
ObjectDefinition |
copy()
Deep copies the fields of the this model into a new instance of this class and returns it.
|
ObjectDefinition |
copy(boolean isDeep)
Copies the fields of the this model (optionally deeply) into a new instance of this class and returns it.
|
protected ObjectDefinition |
copy(ObjectDefinition nobj,
boolean isDeep)
Copies the fields of the this model (optionally deeply) into the given instance and returns it.
|
boolean |
equals(Object o) |
String |
getCookie()
Optional object definition specific information which will be passed into subsequent
operations using this definition via
OperationContext.getObjectDefinitionCookie(com.boomi.connector.api.ObjectDefinitionRole) . |
String |
getElementName()
Optional name identifying the top-level element within the given schema document which is
the
actual object definition.
|
List<ExtraSchema> |
getExtraSchemaList()
A list of ExtraSchema instances.
|
ExtraSchemas |
getExtraSchemas()
Gets the value of the extraSchemas property.
|
List<FieldSpecField> |
getFieldSpecFields()
Lists any additional field(s) that can be used as a field selection or query sort/filter field but will not be included in the profile.
|
ContentType |
getInputType()
The type of input data that this object type expects.
|
String |
getJsonSchema()
Primary JSON Schema document which describes the object type.
|
ContentType |
getOutputType()
The type of output data that this object type returns.
|
Element |
getSchema()
Primary XML Schema document which describes the object type
|
int |
hashCode() |
boolean |
isRespectMinOccurs()
When specified as true, this attribute will generate profiles that respect the minOccurs
attribute of the schema, generating empty elements when no data is present.
|
ExtraSchemas |
safeGetExtraSchemas()
Returns the current extraSchemas property value if non-
null , otherwise ExtraSchemas.EMPTY_INSTANCE . |
void |
setCookie(String value)
Sets the value of the cookie property.
|
void |
setElementName(String value)
Sets the value of the elementName property.
|
void |
setExtraSchemas(ExtraSchemas value)
Sets the value of the extraSchemas property.
|
void |
setInputType(ContentType value)
Sets the value of the inputType property.
|
void |
setJsonSchema(String value)
Sets the value of the jsonSchema property.
|
void |
setOutputType(ContentType value)
Sets the value of the outputType property.
|
void |
setRespectMinOccurs(Boolean value)
Sets the value of the respectMinOccurs property.
|
void |
setSchema(Element value)
Sets the value of the schema property.
|
String |
toString() |
ObjectDefinition |
withCookie(String newValue)
Sets the cookie property to the given newValue and returns this instance.
|
ObjectDefinition |
withElementName(String newValue)
Sets the elementName property to the given newValue and returns this instance.
|
ObjectDefinition |
withExtraSchemaList(Collection<? extends ExtraSchema> newValues)
Adds the given newValues to the current extraSchemaList property List and returns this instance.
|
ObjectDefinition |
withExtraSchemaList(ExtraSchema... newValues)
Adds the given newValues to the current extraSchemaList property List and returns this instance.
|
ObjectDefinition |
withExtraSchemas(ExtraSchemas newValue)
Sets the extraSchemas property to the given newValue and returns this instance.
|
ObjectDefinition |
withFieldSpecFields(Collection<? extends FieldSpecField> newValues)
Adds the given newValues to the current fieldSpecFields property List and returns this instance.
|
ObjectDefinition |
withFieldSpecFields(FieldSpecField... newValues)
Adds the given newValues to the current fieldSpecFields property List and returns this instance.
|
ObjectDefinition |
withInputType(ContentType newValue)
Sets the inputType property to the given newValue and returns this instance.
|
ObjectDefinition |
withJsonSchema(String newValue)
Sets the jsonSchema property to the given newValue and returns this instance.
|
ObjectDefinition |
withOutputType(ContentType newValue)
Sets the outputType property to the given newValue and returns this instance.
|
ObjectDefinition |
withRespectMinOccurs(Boolean newValue)
Sets the respectMinOccurs property to the given newValue and returns this instance.
|
ObjectDefinition |
withSchema(Element newValue)
Sets the schema property to the given newValue and returns this instance.
|
protected Element schema
protected String cookie
protected List<ExtraSchema> extraSchemaList
protected ExtraSchemas extraSchemas
protected String jsonSchema
protected List<FieldSpecField> fieldSpecFields
protected String elementName
protected Boolean respectMinOccurs
protected ContentType inputType
protected ContentType outputType
public static final ObjectDefinition EMPTY_INSTANCE
public Element getSchema()
Element
public void setSchema(Element value)
value
- allowed object is
Element
public String getCookie()
OperationContext.getObjectDefinitionCookie(com.boomi.connector.api.ObjectDefinitionRole)
.
This may contain any additional information necessary for the connector operation. The
length of this string is restricted by AtomConfig.getMaxObjectTypeCookieLength()
.String
public void setCookie(String value)
value
- allowed object is
String
public List<ExtraSchema> getExtraSchemaList()
Gets the value of the extraSchemaList 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 set
method for the extraSchemaList property.
For example, to add a new item, do as follows:
getExtraSchemaList().add(newItem);
Objects of the following type(s) are allowed in the list
ExtraSchema
public ExtraSchemas getExtraSchemas()
ExtraSchemas
public void setExtraSchemas(ExtraSchemas value)
value
- allowed object is
ExtraSchemas
public String getJsonSchema()
String
public void setJsonSchema(String value)
value
- allowed object is
String
public List<FieldSpecField> getFieldSpecFields()
Gets the value of the fieldSpecFields 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 set
method for the fieldSpecFields property.
For example, to add a new item, do as follows:
getFieldSpecFields().add(newItem);
Objects of the following type(s) are allowed in the list
FieldSpecField
public String getElementName()
String
public void setElementName(String value)
value
- allowed object is
String
public boolean isRespectMinOccurs()
Boolean
public void setRespectMinOccurs(Boolean value)
value
- allowed object is
Boolean
public ContentType getInputType()
ContentType
public void setInputType(ContentType value)
value
- allowed object is
ContentType
public ContentType getOutputType()
ContentType
public void setOutputType(ContentType value)
value
- allowed object is
ContentType
public ObjectDefinition copy()
public ObjectDefinition copy(boolean isDeep)
protected ObjectDefinition copy(ObjectDefinition nobj, boolean isDeep)
public ObjectDefinition withSchema(Element newValue)
public ObjectDefinition withCookie(String newValue)
public ObjectDefinition withExtraSchemaList(ExtraSchema... newValues)
public ObjectDefinition withExtraSchemaList(Collection<? extends ExtraSchema> newValues)
public ObjectDefinition withExtraSchemas(ExtraSchemas newValue)
public ExtraSchemas safeGetExtraSchemas()
null
, otherwise ExtraSchemas.EMPTY_INSTANCE
.public ObjectDefinition withJsonSchema(String newValue)
public ObjectDefinition withFieldSpecFields(FieldSpecField... newValues)
public ObjectDefinition withFieldSpecFields(Collection<? extends FieldSpecField> newValues)
public ObjectDefinition withElementName(String newValue)
public ObjectDefinition withRespectMinOccurs(Boolean newValue)
public ObjectDefinition withInputType(ContentType newValue)
public ObjectDefinition withOutputType(ContentType newValue)