|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataModelEditor
This class handles the composition of any number of model fragments into a single non-JAXB merged image of the model, and also handles writing out changes by splitting them back out into separate fragments.
| Field Summary |
|---|
| Fields inherited from interface com.ca.commons.datamodel.DataModelBuilder |
|---|
metadataMismatchLogger |
| Method Summary | |
|---|---|
void |
mergeEditableFragment(DataModelSource readSource,
DataModelWritableSource writeSource)
Used to read in a fragment containing values which may be edited, in which case edits to values contained in the fragment will output to the provided writeSource when save() is
called. |
DataModelValue |
newEnumValue(String dataTypeStr,
String[] values,
String defaultValue)
Returns value initialized to parent enum def containing provided values, where dataTypeStr has a value of the form "ENUM:PARENT". |
DataModelValue |
newValue(String dataTypeStr,
String defaultValue)
Factory method that returns a value matching symbolic name like "STR", "FLEXI_STR:DN", "ENUM:DAYS_OF_WEEK", with optional defaultValue. |
void |
save()
Called to save any changes made to one or more fragments read in using mergeEditableFragment(com.ca.commons.datamodel.DataModelSource, com.ca.commons.datamodel.DataModelWritableSource), where the changes are split back
into the output fragments specified from the DataModelWritableSource
matching the ones from which they were merged. |
void |
save(DataModelWritableSource writeSource)
Write merged results to provided source, instead of splitting into multiple output fragments. |
| Methods inherited from interface com.ca.commons.datamodel.DataModelBuilder |
|---|
getDataModel, mergeFragment |
| Method Detail |
|---|
void mergeEditableFragment(DataModelSource readSource,
DataModelWritableSource writeSource)
throws IOException,
javax.xml.bind.JAXBException
writeSource when save() is
called.
readSource - Read-only source from which datamodel fragment
should be read.writeSource - Writable source which edits will be saved to
by save().
IOException - Problem getting, or processing, fragment.
javax.xml.bind.JAXBException
void save()
throws IOException,
javax.xml.bind.JAXBException
mergeEditableFragment(com.ca.commons.datamodel.DataModelSource, com.ca.commons.datamodel.DataModelWritableSource), where the changes are split back
into the output fragments specified from the DataModelWritableSource
matching the ones from which they were merged.
IOException
javax.xml.bind.JAXBException
void save(DataModelWritableSource writeSource)
throws IOException,
javax.xml.bind.JAXBException
IOException
javax.xml.bind.JAXBException
@NotNull
DataModelValue newValue(String dataTypeStr,
String defaultValue)
throws ParseException
newEnumValue(String, String[], String)
if values are known.
ParseException - When provided args are illegal.
@NotNull
DataModelValue newEnumValue(String dataTypeStr,
String[] values,
String defaultValue)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||