Class MetadataXMLParser
- java.lang.Object
-
- org.eclipse.epsilon.emc.spreadsheets.MetadataXMLParser
-
- All Implemented Interfaces:
ISpreadsheetMetadata
public class MetadataXMLParser extends Object implements ISpreadsheetMetadata
This class provides a concrete implementation for collecting spreadsheet ORM Metadata from XML documents.- Author:
- Martins Francis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.epsilon.emc.spreadsheets.ISpreadsheetMetadata
ISpreadsheetMetadata.SpreadsheetColumnMetadata, ISpreadsheetMetadata.SpreadsheetReferenceMetadata, ISpreadsheetMetadata.SpreadsheetWorksheetMetadata
-
-
Constructor Summary
Constructors Constructor Description MetadataXMLParser(Document xml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ISpreadsheetMetadata.SpreadsheetColumnMetadata>
getColumnMetadata(String name)
The purpose of this method is to get every column metadata specified in the ORM metadata source for the worksheet identifiable by the given name.Set<ISpreadsheetMetadata.SpreadsheetReferenceMetadata>
getReferenceMetadata()
The purpose of this method is to get every reference specified in the ORM metadata source.Set<ISpreadsheetMetadata.SpreadsheetWorksheetMetadata>
getWorksheetMetadata()
The purpose of this method is to get metadata for every worksheet specified in the ORM metadata source.
-
-
-
Constructor Detail
-
MetadataXMLParser
public MetadataXMLParser(Document xml)
-
-
Method Detail
-
getWorksheetMetadata
public Set<ISpreadsheetMetadata.SpreadsheetWorksheetMetadata> getWorksheetMetadata()
Description copied from interface:ISpreadsheetMetadata
The purpose of this method is to get metadata for every worksheet specified in the ORM metadata source.- Specified by:
getWorksheetMetadata
in interfaceISpreadsheetMetadata
- Returns:
- Set
-
getColumnMetadata
public Set<ISpreadsheetMetadata.SpreadsheetColumnMetadata> getColumnMetadata(String name)
Description copied from interface:ISpreadsheetMetadata
The purpose of this method is to get every column metadata specified in the ORM metadata source for the worksheet identifiable by the given name.- Specified by:
getColumnMetadata
in interfaceISpreadsheetMetadata
- Returns:
- Set
-
getReferenceMetadata
public Set<ISpreadsheetMetadata.SpreadsheetReferenceMetadata> getReferenceMetadata()
Description copied from interface:ISpreadsheetMetadata
The purpose of this method is to get every reference specified in the ORM metadata source.- Specified by:
getReferenceMetadata
in interfaceISpreadsheetMetadata
- Returns:
- Set
-
-