public class SchemaData extends AbstractObject implements Cloneable
The
The Schema element is always a child of Document. The ExtendedData element is a child of the Feature that contains the custom data.
This element is used in conjunction with
| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
schemaDataExtension
|
protected String |
schemaUrl |
protected List<SimpleData> |
simpleData
|
id, objectSimpleExtension, targetId| Constructor and Description |
|---|
SchemaData() |
| Modifier and Type | Method and Description |
|---|---|
SchemaData |
addToObjectSimpleExtension(Object objectSimpleExtension)
add a value to the objectSimpleExtension property collection
|
SchemaData |
addToSchemaDataExtension(Object schemaDataExtension)
add a value to the schemaDataExtension property collection
|
SchemaData |
addToSimpleData(SimpleData simpleData)
add a value to the simpleData property collection
|
SchemaData |
clone() |
SimpleData |
createAndAddSimpleData(String name)
Creates a new instance of
SimpleData and adds it to simpleData. |
boolean |
equals(Object obj) |
List<Object> |
getSchemaDataExtension() |
String |
getSchemaUrl() |
List<SimpleData> |
getSimpleData() |
int |
hashCode() |
void |
setObjectSimpleExtension(List<Object> objectSimpleExtension) |
void |
setSchemaDataExtension(List<Object> schemaDataExtension) |
void |
setSchemaUrl(String value) |
void |
setSimpleData(List<SimpleData> simpleData) |
SchemaData |
withId(String id)
fluent setter
|
SchemaData |
withObjectSimpleExtension(List<Object> objectSimpleExtension)
fluent setter
|
SchemaData |
withSchemaDataExtension(List<Object> schemaDataExtension)
fluent setter
|
SchemaData |
withSchemaUrl(String schemaUrl)
fluent setter
|
SchemaData |
withSimpleData(List<SimpleData> simpleData)
fluent setter
|
SchemaData |
withTargetId(String targetId)
fluent setter
|
getId, getObjectSimpleExtension, getTargetId, setId, setTargetIdprotected List<SimpleData> simpleData
Here is an example of defining two custom data elements:
This element assigns a value to the custom data field identified by the name attribute.
The type and name of this custom data field are declared in the
protected String schemaUrl
public List<SimpleData> getSimpleData()
simpleDatapublic void setSchemaUrl(String value)
value - allowed object is
StringschemaUrlpublic int hashCode()
hashCode in class AbstractObjectpublic boolean equals(Object obj)
equals in class AbstractObjectpublic SimpleData createAndAddSimpleData(String name)
SimpleData and adds it to simpleData.
This method is a short version for:
SimpleData simpleData = new SimpleData();
this.getSimpleData().add(simpleData); name - required parameterpublic void setSimpleData(List<SimpleData> simpleData)
simpleData - simpleDatapublic SchemaData addToSimpleData(SimpleData simpleData)
simpleData - Objects of the following type are allowed in the list: SimpleDatapublic void setSchemaDataExtension(List<Object> schemaDataExtension)
schemaDataExtension - schemaDataExtensionpublic SchemaData addToSchemaDataExtension(Object schemaDataExtension)
schemaDataExtension - Objects of the following type are allowed in the list: <SimpleArrayDataJAXBElement<Objectpublic void setObjectSimpleExtension(List<Object> objectSimpleExtension)
setObjectSimpleExtension in class AbstractObjectobjectSimpleExtensionpublic SchemaData addToObjectSimpleExtension(Object objectSimpleExtension)
AbstractObjectaddToObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - Objects of the following type are allowed in the list: Objectpublic SchemaData withSimpleData(List<SimpleData> simpleData)
simpleData - required parameter#setSimpleData(List) public SchemaData withSchemaDataExtension(List<Object> schemaDataExtension)
schemaDataExtension - required parameter#setSchemaDataExtension(Listpublic SchemaData withSchemaUrl(String schemaUrl)
schemaUrl - required parametersetSchemaUrl(String)public SchemaData withObjectSimpleExtension(List<Object> objectSimpleExtension)
AbstractObjectwithObjectSimpleExtension in class AbstractObjectobjectSimpleExtension - required parameter#setObjectSimpleExtension(Listpublic SchemaData withId(String id)
AbstractObjectwithId in class AbstractObjectid - required parameterAbstractObject.setId(String)public SchemaData withTargetId(String targetId)
AbstractObjectwithTargetId in class AbstractObjecttargetId - required parameterAbstractObject.setTargetId(String)public SchemaData clone()
clone in class AbstractObjectCopyright © 2014 Micromata GmbH. All rights reserved.