public interface DataHolder
| Modifier and Type | Method and Description |
|---|---|
default void |
copyTo(ModifiableDataHolder dataHolder)
Copies the current
DataHolder to the given ModifiableModelAwareDataHolder. |
default void |
dataToSAX(ContentHandler contentHandler,
String dataPath)
Generates SAX events for the data at the given data path in the current
DataHolder
Do not generate any event if there is no values at the given path |
default void |
dataToSAX(ContentHandler contentHandler,
String dataPath,
Locale locale)
Generates SAX events for the data at the given data path in the current
DataHolder
Do not generate any event if there is no values at the given path |
default void |
dataToSAX(ContentHandler contentHandler,
String dataPath,
String tagName)
Generates SAX events for the data at the given data path in the current
DataHolder
Do not generate any event if there is no values at the given path |
default void |
dataToSAX(ContentHandler contentHandler,
String dataPath,
String tagName,
Locale locale)
Generates SAX events for the data at the given data path in the current
DataHolder
Do not generate any event if there is no values at the given path |
Composite |
getComposite(String compositePath)
Retrieves the composite at the given path
|
Collection<String> |
getDataNames()
Retrieves the names of data contained by this data holder
|
Repeater |
getRepeater(String repeaterPath)
Retrieves the repeater at the given path
|
boolean |
hasValue(String dataPath)
Checks if there is a value for the data at the given path
|
default void |
toSAX(ContentHandler contentHandler)
Generates SAX events for current
DataHolder |
default void |
toSAX(ContentHandler contentHandler,
Locale locale)
Generates SAX events for the current
DataHolder |
Composite getComposite(String compositePath) throws IllegalArgumentException, BadItemTypeException
compositePath - path of the composite to retrievenull if not existsIllegalArgumentException - if the given composite path is null or emptyBadItemTypeException - if the value stored in the repository at the given path is not a compositeRepeater getRepeater(String repeaterPath) throws IllegalArgumentException, BadItemTypeException
repeaterPath - path of the repeater to retrievenull if not existsIllegalArgumentException - if the given repeater path is null or emptyBadItemTypeException - if the value stored in the repository at the given path is not a repeaterboolean hasValue(String dataPath) throws IllegalArgumentException
dataPath - path of the datatrue if there is value for the data, false otherwiseIllegalArgumentException - if the given data path is null or emptyCollection<String> getDataNames()
default void copyTo(ModifiableDataHolder dataHolder) throws UndefinedItemPathException, BadItemTypeException, UnknownTypeException, NotUniqueTypeException
DataHolder to the given ModifiableModelAwareDataHolder.dataHolder - The destination dataHolder. Can not be null.UndefinedItemPathException - if one of the copied data is not defined by the model of the destination ModifiableModelAwareDataHolderBadItemTypeException - if the type defined by the model of the destination ModifiableModelAwareDataHolder doesn't match the copied valueUnknownTypeException - if there is no available type compatible with the copied value for the type extension point of the destination ModifiableModelLessDataHolderNotUniqueTypeException - if there is more than one available types compatibles with the copied value for the type extension point of the destination ModifiableModelLessDataHolderdefault void toSAX(ContentHandler contentHandler) throws SAXException
DataHoldercontentHandler - the ContentHandler that will receive the SAX eventsSAXException - if an error occurs during the SAX events generationdefault void toSAX(ContentHandler contentHandler, Locale locale) throws SAXException
DataHoldercontentHandler - the ContentHandler that will receive the SAX eventslocale - The locale to use for localized data, such as MultilingualString. Can be null to generate SAX events for all existing Locales.SAXException - if an error occurs during the SAX events generationdefault void dataToSAX(ContentHandler contentHandler, String dataPath) throws SAXException
DataHolder
Do not generate any event if there is no values at the given pathcontentHandler - the ContentHandler that will receive the SAX eventsdataPath - the path of the data to SAXSAXException - if an error occurs during the SAX events generationdefault void dataToSAX(ContentHandler contentHandler, String dataPath, String tagName) throws SAXException
DataHolder
Do not generate any event if there is no values at the given pathcontentHandler - the ContentHandler that will receive the SAX eventsdataPath - the path of the data to SAXtagName - the tag name of the SAX event to generate. If null the name of the data is usedSAXException - if an error occurs during the SAX events generationdefault void dataToSAX(ContentHandler contentHandler, String dataPath, Locale locale) throws SAXException
DataHolder
Do not generate any event if there is no values at the given pathcontentHandler - the ContentHandler that will receive the SAX eventsdataPath - the path of the data to SAXlocale - The locale to use for localized data, such as MultilingualString. Can be null to generate SAX events for all existing Locales.SAXException - if an error occurs during the SAX events generationdefault void dataToSAX(ContentHandler contentHandler, String dataPath, String tagName, Locale locale) throws SAXException
DataHolder
Do not generate any event if there is no values at the given pathcontentHandler - the ContentHandler that will receive the SAX eventsdataPath - the path of the data to SAXtagName - the tag name of the SAX event to generate. If null the name of the data is usedlocale - The locale to use for localized data, such as MultilingualString. Can be null to generate SAX events for all existing Locales.SAXException - if an error occurs during the SAX events generation