Bug #5431
closedData Manager throws exception for otherEntity when attributeList is optionally omitted
0%
Description
The EML schema (2.x.y) specifies that all data entities be classified as one of six different DatasetType types:
dataTable
spatialRaster
spatialVector
storedProcedure
view
otherEntity
Of these, only 'otherEntity' is allowed to optionally specify an 'attributeList' element; the other five entity types are required to specify an 'attributeList' element.
The Data Manager Library assumes that all data entities are required to include the 'attributeList' element, throwing an exception whenever it is not specified. The DML should change its behavior in accordance with the EML schema, allowing 'attributeList' to be an optional element when the DatasetType is 'otherEntity'.
Updated by Duane Costa over 13 years ago
Fixed with the following update:
Author: costa
Date: 2011-06-28 10:15:25 -0700 (Tue, 28 Jun 2011)
New Revision: 2198
Modified:
trunk/src/org/ecoinformatics/datamanager/DataManager.java
trunk/src/org/ecoinformatics/datamanager/parser/Entity.java
trunk/src/org/ecoinformatics/datamanager/parser/generic/GenericDataPackageParser.java
Log:
Fix for Bug 5431 - Data Manager throws exception for otherEntity when attributeList is optionally omitted.