Package org.ametys.plugins.explorer.cmis
Class CMISResource
java.lang.Object
org.ametys.plugins.explorer.cmis.CMISResource
- All Implemented Interfaces:
Resource,AmetysObject,DataHolder,DublinCoreAwareAmetysObject
Implementation of an
Resource, backed by a server CMIS.-
Constructor Summary
ConstructorsConstructorDescriptionCMISResource(Document document, CMISRootResourcesCollection root, AmetysObject parent) Creates aCMISResource -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyTo(ModifiableDataHolder dataHolder) Copies the currentDataHolderto the givenModifiableDataHolder.voidcopyTo(ModifiableDataHolder dataHolder, DataContext context) Copies the currentDataHolderto the givenModifiableDataHolder.dataToJSON(String dataPath, DataContext context) Convert the data at the given path into a JSON objectdataToJSON(DataContext context) Convert the data contained in thisDataHoldervoiddataToSAX(ContentHandler contentHandler, String dataPath, DataContext context) Generates SAX events for the data at the given data path in the currentDataHolderDo not generate any event if there is no values at the given pathvoiddataToSAX(ContentHandler contentHandler, DataContext context) Generates SAX events for data contained in thisDataHolderRetrieves theFolderRetrieves theCMISRootResourcesCollectiongetComposite(String compositePath) Retrieves the composite at the given pathRetrieves the creation date.Returns the last contributor of this resource.Retrieves the names of data contained by this data holder Retrieves only the data at first level, does not check composite dataGet the Dublin Core contributor.Get the Dublin Core coverage.Get the Dublin Core creator.Get the Dublin Core date.Get the Dublin Core description.Get the Dublin Core format.Get the Dublin Core identifier.Get the Dublin Core language.Get the Dublin Core publisher.Get the Dublin Core relation.Get the Dublin Core rights.Get the Dublin Core source.String[]Get the Dublin Core subject.Get the Dublin Core title.Get the Dublin Core type.getId()Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>Returns the data stream.String[]Returns the keywords of this resource, as a String array.Returns the keywords of this resource, as a comme-separated String.Retrieves the login of the last contributor.Returns the last modification date.longReturns the length of the data stream.Returns the data mime-type.Provide the ModelItemTypeExtensionPoint linked with the DataHoldergetName()Retrieves the name of the current object.Returns the parent object in the Ametys hierarchy.Optional<? extends DataHolder> Retrieves the optional parent of the currentDataHolderThere can be no parent if the currentDataHolderis the rootReturns the path of the parent object in the Ametys hierarchy.getPath()Retrieves the path of the current object.Retrieves the repository data used by thisDataHolderReturns the path of this resource in its hierarchy (which is a subset of the whole repository).Retrieves theDataHolderthat is the root of the current one<X extends ModelItemType>
XRetrieves the type of the data at the given path<T> TRetrieves the value of the data at the given path<T> TgetValueOfType(String dataPath, String dataTypeId) Retrieves the value of the data at the given path<T> TgetValueOfTypeOrDefault(String dataPath, String dataTypeId, T defaultValue) Retrieves the value of the data at the given path if exists and is not empty, or the given default value<T> TgetValueOrDefault(String dataPath, T defaultValue) Retrieves the value of the data at the given path if exists and is not empty, or the given default valuebooleanhasDifferences(Map<String, Object> values) Check if there are differences between the given values and the current onesbooleanChecks if there is a non empty value for the data at the given pathbooleanChecks if there is a non empty value for the data at the given pathbooleanhasValueOrEmpty(String dataPath) Checks if there is a value, even empty, for the data at the given pathbooleanisMultiple(String dataPath) Checks if the value of the data at the given path is multiplebooleanisMultiple(String dataPath, String dataTypeId) Checks if the value of the data at the given path is multipleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToJSON, dataToJSON, dataToSAX, dataToSAX
-
Constructor Details
-
CMISResource
Creates aCMISResource- Parameters:
document- The CMIS documentroot- The root of the virtual treeparent- the parentAmetysObjectif known
-
-
Method Details
-
getCmisRoot
Retrieves theCMISRootResourcesCollection- Returns:
- the
CMISRootResourcesCollection
-
getCmisDocument
Retrieves theFolder- Returns:
- the
Folder
-
getId
Description copied from interface:AmetysObjectRetrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>- Specified by:
getIdin interfaceAmetysObject- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException- if an error occurs.
-
getName
Description copied from interface:AmetysObjectRetrieves the name of the current object.- Specified by:
getNamein interfaceAmetysObject- Returns:
- the name.
-
getParent
Description copied from interface:AmetysObjectReturns the parent object in the Ametys hierarchy.- Specified by:
getParentin interfaceAmetysObject- Returns:
- the parent object or
nullif current object is the root. - Throws:
AmetysRepositoryException- if an error occurs.
-
getParentPath
Description copied from interface:AmetysObjectReturns the path of the parent object in the Ametys hierarchy.- Specified by:
getParentPathin interfaceAmetysObject- Returns:
- the path of the parent object.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getPath
Description copied from interface:AmetysObjectRetrieves the path of the current object.- Specified by:
getPathin interfaceAmetysObject- Returns:
- the path.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getCreator
Description copied from interface:ResourceReturns the last contributor of this resource.- Specified by:
getCreatorin interfaceResource- Returns:
- the last contributor of this resource.
-
getInputStream
Description copied from interface:ResourceReturns the data stream.- Specified by:
getInputStreamin interfaceResource- Returns:
- the data stream.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLastModified
Description copied from interface:ResourceReturns the last modification date.- Specified by:
getLastModifiedin interfaceResource- Returns:
- the last modification date.
-
getLength
Description copied from interface:ResourceReturns the length of the data stream. -
getMimeType
Description copied from interface:ResourceReturns the data mime-type.- Specified by:
getMimeTypein interfaceResource- Returns:
- the data mime-type.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getKeywords
Description copied from interface:ResourceReturns the keywords of this resource, as a String array.- Specified by:
getKeywordsin interfaceResource- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getKeywordsAsString
Description copied from interface:ResourceReturns the keywords of this resource, as a comme-separated String.- Specified by:
getKeywordsAsStringin interfaceResource- Returns:
- the keywords of this resource.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getResourcePath
Description copied from interface:ResourceReturns the path of this resource in its hierarchy (which is a subset of the whole repository).- Specified by:
getResourcePathin interfaceResource- Returns:
- the path of this resource in its hierarchy.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCTitle
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core title.- Specified by:
getDCTitlein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core title. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCCreator
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core creator.- Specified by:
getDCCreatorin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core creator. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCSubject
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core subject.- Specified by:
getDCSubjectin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core subject. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCDescription
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core description.- Specified by:
getDCDescriptionin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core description. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCPublisher
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core publisher.- Specified by:
getDCPublisherin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core publisher. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCContributor
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core contributor.- Specified by:
getDCContributorin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core contributor. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCDate
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core date.- Specified by:
getDCDatein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core date. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCType
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core type.- Specified by:
getDCTypein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core type. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCFormat
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core format.- Specified by:
getDCFormatin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core format. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCIdentifier
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core identifier.- Specified by:
getDCIdentifierin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core identifier. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCSource
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core source.- Specified by:
getDCSourcein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core source. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCLanguage
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core language.- Specified by:
getDCLanguagein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core language. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCRelation
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core relation.- Specified by:
getDCRelationin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core relation. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCCoverage
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core coverage.- Specified by:
getDCCoveragein interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core coverage. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getDCRights
Description copied from interface:DublinCoreAwareAmetysObjectGet the Dublin Core rights.- Specified by:
getDCRightsin interfaceDublinCoreAwareAmetysObject- Returns:
- the Dublin Core rights. Can be null.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getCreationDate
Description copied from interface:ResourceRetrieves the creation date.- Specified by:
getCreationDatein interfaceResource- Returns:
- the creation date.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLastContributor
Description copied from interface:ResourceRetrieves the login of the last contributor.- Specified by:
getLastContributorin interfaceResource- Returns:
- the login of the last contributor.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getComposite
public Composite getComposite(String compositePath) throws IllegalArgumentException, UnknownTypeException, BadItemTypeException Description copied from interface:DataHolderRetrieves the composite at the given path- Specified by:
getCompositein interfaceDataHolder- Parameters:
compositePath- path of the composite to retrieve- Returns:
- the composite or
nullif not exists or is empty - Throws:
IllegalArgumentException- if the given composite path is null or emptyUnknownTypeException- if the type composite is not available for this data holderBadItemTypeException- if the stored value at the given path is not a composite
-
hasValue
Description copied from interface:DataHolderChecks if there is a non empty value for the data at the given path- Specified by:
hasValuein interfaceDataHolder- Parameters:
dataPath- path of the data- Returns:
trueif there is a non empty value for the data. If the data holder has a model and the data at the given path is defined by the model and the type of this value matches the type of the definition.falseotherwise- Throws:
IllegalArgumentException- if the given data path is null or empty
-
hasValue
Description copied from interface:DataHolderChecks if there is a non empty value for the data at the given path- Specified by:
hasValuein interfaceDataHolder- Parameters:
dataPath- path of the datadataTypeId- type identifier of the data- Returns:
trueif there is a non empty value for the data. If the data holder has a model and the data at the given path is defined by the model and the type of this value matches the type of the definition.falseotherwise- Throws:
IllegalArgumentException- if the given data path is null or empty
-
hasValueOrEmpty
Description copied from interface:DataHolderChecks if there is a value, even empty, for the data at the given path- Specified by:
hasValueOrEmptyin interfaceDataHolder- Parameters:
dataPath- path of the data- Returns:
trueif there is value, even empty, for the data. If the data holder has a model and the data at the given path is defined by the model and the type of this value matches the type of the definition.falseotherwise- Throws:
IllegalArgumentException- if the given data path is null or empty
-
getDataNames
Description copied from interface:DataHolderRetrieves the names of data contained by this data holder Retrieves only the data at first level, does not check composite data- Specified by:
getDataNamesin interfaceDataHolder- Returns:
- the names of all data contained by this data holder
-
getValue
public <T> T getValue(String dataPath) throws IllegalArgumentException, UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderRetrieves the value of the data at the given path- Specified by:
getValuein interfaceDataHolder- Type Parameters:
T- type of the value to retrieve. If the data holder has a model, the type of the value is defined by this model. Otherwise, the type of the value will be deduced from the stored data. In some cases, the type can be wrong. For example, it is impossible to know if a stored date is a date or a date time- Parameters:
dataPath- path of the data- Returns:
- the value of the data or
nullif not exists or is empty. A typed array is returned for multiple empty data, and an empty string is returned for single empty string data - Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownTypeException- if there is no compatible type with the data at the given data pathNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one)BadItemTypeException- if the data holder has a model and the type defined by the model doesn't match the type of the stored value, or if value at the sub data path of the given one is not a composite
-
getValueOrDefault
public <T> T getValueOrDefault(String dataPath, T defaultValue) throws IllegalArgumentException, UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderRetrieves the value of the data at the given path if exists and is not empty, or the given default value- Specified by:
getValueOrDefaultin interfaceDataHolder- Type Parameters:
T- type of the value to retrieve. If the data holder has a model, the type of the value is defined by this model. Otherwise, the type of the value will be deduced from the stored data. In some cases, the type can be wrong. For example, it is impossible to know if a stored date is a date or a date time- Parameters:
dataPath- path of the datadefaultValue- default value- Returns:
- the value of the data, or the given default value if the value does not exist or is empty
- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownTypeException- if there is no compatible type with the data at the given data pathNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one)BadItemTypeException- if value at the sub data path of the given one is not a composite
-
getValueOfType
public <T> T getValueOfType(String dataPath, String dataTypeId) throws IllegalArgumentException, UnknownTypeException, BadItemTypeException Description copied from interface:DataHolderRetrieves the value of the data at the given path- Specified by:
getValueOfTypein interfaceDataHolder- Type Parameters:
T- type of the value to retrieve. Should match the given data type- Parameters:
dataPath- path of the datadataTypeId- type identifier of the data- Returns:
- the value of the data or
nullif not exists or is empty. A typed array is returned for multiple empty data, and an empty string is returned for single empty string data - Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownTypeException- if the given type isn't available for this data holder's type extension pointBadItemTypeException- if the given type doesn't match the type of the stored value at the given path
-
getValueOfTypeOrDefault
public <T> T getValueOfTypeOrDefault(String dataPath, String dataTypeId, T defaultValue) throws IllegalArgumentException, UnknownTypeException, BadItemTypeException Description copied from interface:DataHolderRetrieves the value of the data at the given path if exists and is not empty, or the given default value- Specified by:
getValueOfTypeOrDefaultin interfaceDataHolder- Type Parameters:
T- type of the value to retrieve. Should match the given data type- Parameters:
dataPath- path of the datadataTypeId- type identifier of the datadefaultValue- default value- Returns:
- the value of the data, or the given default value if the value does not exist or is empty
- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownTypeException- if the given type isn't available for this data holder's type extension pointBadItemTypeException- if the given type doesn't match the type of the stored value at the given path
-
isMultiple
public boolean isMultiple(String dataPath) throws IllegalArgumentException, UnknownDataException, UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderChecks if the value of the data at the given path is multiple- Specified by:
isMultiplein interfaceDataHolder- Parameters:
dataPath- path of the data to check- Returns:
trueif the value of the data is multiple,falseotherwise- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownDataException- the data at the given path does not existUnknownTypeException- if there is no compatible type with the data at the given data pathNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one)BadItemTypeException- if value at the sub data path of the given one is not a composite
-
isMultiple
public boolean isMultiple(String dataPath, String dataTypeId) throws IllegalArgumentException, UnknownDataException, UnknownTypeException, BadItemTypeException Description copied from interface:DataHolderChecks if the value of the data at the given path is multiple- Specified by:
isMultiplein interfaceDataHolder- Parameters:
dataPath- path of the data to checkdataTypeId- type identifier of the data- Returns:
trueif the value of the data is multiple,falseotherwise- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownDataException- the data at the given path does not existUnknownTypeException- if there is no compatible type with the data at the given data pathBadItemTypeException- if value at the sub data path of the given one is not a composite
-
getType
public <X extends ModelItemType> X getType(String dataPath) throws IllegalArgumentException, UnknownDataException, UnknownTypeException, NotUniqueTypeException Description copied from interface:DataHolderRetrieves the type of the data at the given path- Specified by:
getTypein interfaceDataHolder- Type Parameters:
X- type of the item type- Parameters:
dataPath- path of the data- Returns:
- the type of the data
- Throws:
IllegalArgumentException- if the given data path is null or emptyUnknownDataException- if there is no data stored at the given pathUnknownTypeException- if there is no compatible type with the data at the given data path or if the data is a repeater entry but the composite type is not availableNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one)
-
getModelItemTypeExtensionPoint
Description copied from interface:DataHolderProvide the ModelItemTypeExtensionPoint linked with the DataHolder- Specified by:
getModelItemTypeExtensionPointin interfaceDataHolder- Returns:
- the extension point
-
copyTo
public void copyTo(ModifiableDataHolder dataHolder) throws UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderCopies the currentDataHolderto the givenModifiableDataHolder.- Specified by:
copyToin interfaceDataHolder- Parameters:
dataHolder- The destination dataHolder. Can not be null.- Throws:
UnknownTypeException- if there is no available type compatible with the copied value for the type extension point of the destinationModifiableDataHolderNotUniqueTypeException- if there is more than one available types compatibles with the copied value for the type extension point of the destinationModifiableDataHolderBadItemTypeException- if type of a data to copy doesn't match the data with same path in the destinationModifiableDataHolder
-
copyTo
public void copyTo(ModifiableDataHolder dataHolder, DataContext context) throws UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderCopies the currentDataHolderto the givenModifiableDataHolder.- Specified by:
copyToin interfaceDataHolder- Parameters:
dataHolder- The destination dataHolder. Can not be null.context- The context of the data to copy- Throws:
UnknownTypeException- if there is no available type compatible with the copied value for the type extension point of the destinationModifiableDataHolderNotUniqueTypeException- if there is more than one available types compatibles with the copied value for the type extension point of the destinationModifiableDataHolderBadItemTypeException- if type of a data to copy doesn't match the data with same path in the destinationModifiableDataHolder
-
dataToSAX
public void dataToSAX(ContentHandler contentHandler, DataContext context) throws SAXException, UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderGenerates SAX events for data contained in thisDataHolder- Specified by:
dataToSAXin interfaceDataHolder- Parameters:
contentHandler- theContentHandlerthat will receive the SAX eventscontext- The context of the data to SAX- Throws:
SAXException- if an error occurs during the SAX events generationUnknownTypeException- if there is no compatible type with the saxed valueNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one) with the saxed valueBadItemTypeException- if the saxed value's type does not matches the stored data
-
dataToSAX
public void dataToSAX(ContentHandler contentHandler, String dataPath, DataContext context) throws SAXException, UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderGenerates SAX events for the data at the given data path in the currentDataHolderDo not generate any event if there is no values at the given path- Specified by:
dataToSAXin interfaceDataHolder- Parameters:
contentHandler- theContentHandlerthat will receive the SAX eventsdataPath- the path of the data to SAXcontext- The context of the data to SAX- Throws:
SAXException- if an error occurs during the SAX events generationUnknownTypeException- if there is no compatible type with the saxed valueNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one) with the saxed valueBadItemTypeException- if the saxed value's type does not matches the stored data
-
dataToJSON
public Map<String,Object> dataToJSON(DataContext context) throws UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderConvert the data contained in thisDataHolder- Specified by:
dataToJSONin interfaceDataHolder- Parameters:
context- The context of the data to convert- Returns:
- The data of the current
DataHolderas JSON - Throws:
UnknownTypeException- if there is no compatible type with the value to convertNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one) with the value to convertBadItemTypeException- if the value's type does not matches the stored data
-
dataToJSON
public Object dataToJSON(String dataPath, DataContext context) throws UnknownTypeException, NotUniqueTypeException, BadItemTypeException Description copied from interface:DataHolderConvert the data at the given path into a JSON object- Specified by:
dataToJSONin interfaceDataHolder- Parameters:
dataPath- the path of the data to convertcontext- The context of the data to convert- Returns:
- The value as JSON
- Throws:
UnknownTypeException- if there is no compatible type with the value to convertNotUniqueTypeException- if there are many compatible types (there is no way to determine which type is the good one) with the value to convertBadItemTypeException- if the value's type does not matches the stored data
-
hasDifferences
public boolean hasDifferences(Map<String, Object> values) throws UnknownTypeException, NotUniqueTypeException, BadItemTypeExceptionDescription copied from interface:DataHolderCheck if there are differences between the given values and the current ones- Specified by:
hasDifferencesin interfaceDataHolder- Parameters:
values- the values to check- Returns:
trueif there are differences,falseotherwise- Throws:
UnknownTypeException- if there is no available type compatible with a given value for this data holder's type extension pointNotUniqueTypeException- if there is more than one available types compatibles with the a value for this data holder's type extension pointBadItemTypeException- if value doesn't match the data at corresponding path
-
getRepositoryData
Description copied from interface:DataHolderRetrieves the repository data used by thisDataHolder- Specified by:
getRepositoryDatain interfaceDataHolder- Returns:
- the repository data used by this
DataHolder
-
getParentDataHolder
Description copied from interface:DataHolderRetrieves the optional parent of the currentDataHolderThere can be no parent if the currentDataHolderis the root- Specified by:
getParentDataHolderin interfaceDataHolder- Returns:
- the parent of the current
DataHolder
-
getRootDataHolder
Description copied from interface:DataHolderRetrieves theDataHolderthat is the root of the current one- Specified by:
getRootDataHolderin interfaceDataHolder- Returns:
- the root
DataHolder
-