public class ConfigAreaParser extends Object
Modifier and Type | Field and Description |
---|---|
private static Debug |
_debug |
(package private) SaxPullAdapter |
_saxPullAdapter |
(package private) PullableEventStream |
_xmlStream |
Constructor and Description |
---|
ConfigAreaParser() |
Modifier and Type | Method and Description |
---|---|
private StartElementEvent |
ignoreElementStructure()
Ignoriert ein Element der XML-Versorgungsdatei.
|
private void |
ignoreElementStructureAndWarn()
Ignoriert ein Element der XML-Versorgungsdatei und gibt eine Warnung aus.
|
ConfigurationAreaProperties |
parse(File areaFile) |
ConfigurationAreaProperties |
parse(InputStream inputStream) |
private ConfigurationObjectProperties |
parseAspectDefinition()
Liest aus einer XML-Versorgungsdatei eine "aspektDefinition" aus.
|
private ConfigurationObjectProperties |
parseAttributDefinition()
Liest aus einer XML-Versorgungsdatei eine "attributDefinition" aus.
|
private PlainAttributeProperties |
parseAttribute()
Erzeugt ein attribut Objekt, siehe K2S.DTD.
|
private ConfigurationObjectProperties |
parseAttributegroupDefinition()
Liest aus einer XML-Versorgungsdatei eine "attributgruppenDefinition" aus.
|
private ListAttributeProperties |
parseAttributeList()
Erzeugt ein attributListe Objekt, siehe K2S.DTD.
|
private ConfigurationObjectProperties |
parseAttributeListDefinition()
Liest aus einer XML-Versorgungsdatei eine "attributlistenDefinition" aus.
|
private ConfigurationAreaProperties |
parseConfigurationArea()
Beginnt die XML-Versorgungsdatei zu parsen und erstellt die benötigten Objekte
|
private ConfigurationAreaChangeInformation[] |
parseConfigurationChanges()
Liest die "konfigurationsAenderung" aus einer XML-Versorgungsdatei ein (mit Start und Endtag).
|
private ConfigurationObjectProperties |
parseConfigurationObject()
Liest aus einer XML-Versorgungsdatei eine "konfigurationsObjekt" aus.
|
private ConfigurationDataField |
parseDataField()
Liest ein "datenfeld"-Objekt aus einer XML-Datei und erzeugt daraus ein Java-Objekt.
|
private ConfigurationDataList |
parseDataList()
Liest ein "datenliste" Objekt aus der XML-Datei und gibt es als Java-Objekt zurück.
|
private List<DatasetElement> |
parseDatasetElements() |
private ConfigurationData |
parseDate()
Liest ein "datum" aus der XML-Datei
|
private SystemObjectInfo |
parseInfo()
Liest ein Element "info" ein, siehe K2S.DTD.
|
private String |
parseInfoText()
Liest die Kurzinformation oder die Beschreibung ein.
|
private ConfigurationObjectProperties |
parseSetDefinition()
Liest aus einer XML-Versorgungsdatei eine "mengenDefinition" aus.
|
private List<TransactionProperties.DataIdentification> |
parseTransactionConstraint() |
private ConfigurationObjectProperties |
parseTransactionDefinition()
Liest aus einer XML-Versorgungsdatei eine "transaktionsDefinition" aus.
|
private ConfigurationObjectProperties |
parseTypeDefinition()
Liest aus einer XML-Versorgungsdatei eine "typDefinition" aus.
|
private static final Debug _debug
final SaxPullAdapter _saxPullAdapter
PullableEventStream _xmlStream
public ConfigAreaParser() throws ParserConfigurationException, SAXException
public ConfigurationAreaProperties parse(File areaFile) throws SAXException
areaFile
- VersorungsdateiSAXException
- Fehler beim parsen der VersorgungsdateiIllegalArgumentException
- Der Dateiname (ohne die Endung ".xml"), der die Pid des zu importierenden Bereichs darstellt, stimmt nicht mit dem Bereich
überein, der durch die Datei importiert werden soll.public ConfigurationAreaProperties parse(InputStream inputStream) throws SAXException
inputStream
- InputStream mit XML-Inhalt. Wird für Tests und andere Fälle benutzt, um nicht unnötigerweise temporäre Dateien anlegen zu müssen.SAXException
- Fehler beim parsen der XML-Datenprivate ConfigurationAreaProperties parseConfigurationArea() throws SAXException, InterruptedException
SAXException
- Fehler beim parsenInterruptedException
- Thread wurde mit Interrupt unterbrochenprivate ConfigurationObjectProperties parseTypeDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseAttributegroupDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseTransactionDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim Parsen der Dateiprivate List<TransactionProperties.DataIdentification> parseTransactionConstraint() throws InterruptedException, SAXException
InterruptedException
SAXException
private ConfigurationObjectProperties parseAspectDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseAttributDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseAttributeListDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseSetDefinition() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate ConfigurationObjectProperties parseConfigurationObject() throws InterruptedException, SAXException
InterruptedException
SAXException
- Fehler beim parsen der Dateiprivate List<DatasetElement> parseDatasetElements() throws InterruptedException, SAXException
InterruptedException
SAXException
private SystemObjectInfo parseInfo() throws SAXException, InterruptedException
SAXException
- Fehler beim parsenInterruptedException
private ConfigurationAreaChangeInformation[] parseConfigurationChanges() throws SAXException, InterruptedException
SAXException
- Fehler beim parsenInterruptedException
private String parseInfoText() throws SAXException, InterruptedException
<kurzinfo> bzw. <beschreibung>
und dem Endtag
</kurzinfo> bzw. </beschreibung>
wird als Text behandelt und steht im erzeugten String.SAXException
InterruptedException
private StartElementEvent ignoreElementStructure() throws SAXException, InterruptedException
SAXException
- Fehler beim parsenInterruptedException
private void ignoreElementStructureAndWarn() throws SAXException, InterruptedException
SAXException
- Fehler beim parsenInterruptedException
private ConfigurationData parseDate() throws SAXException, InterruptedException
SAXException
InterruptedException
private ConfigurationDataList parseDataList() throws SAXException, InterruptedException
SAXException
InterruptedException
private ConfigurationDataField parseDataField() throws SAXException, InterruptedException
SAXException
InterruptedException
private PlainAttributeProperties parseAttribute() throws SAXException, InterruptedException
SAXException
InterruptedException
private ListAttributeProperties parseAttributeList() throws SAXException, InterruptedException
SAXException
InterruptedException