|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.puk.config.xmlFile.parser.ConfigAreaParser
public class ConfigAreaParser
Diese Klasse erzeugt aus einer XML-Versorgungsdatei Objekte, die in die Konfiguration per Import eingebracht werden können. Die XML-Datei wird mit der K2S.dtd bearbeitet.
Field Summary | |
---|---|
private static Debug |
_debug
|
(package private) SaxPullAdapter |
_saxPullAdapter
|
(package private) PullableEventStream |
_xmlStream
|
Constructor Summary | |
---|---|
ConfigAreaParser()
|
Method Summary | |
---|---|
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)
|
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 ConfigurationObjectProperties |
parseTypeDefinition()
Liest aus einer XML-Versorgungsdatei eine "typDefinition" aus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Debug _debug
final SaxPullAdapter _saxPullAdapter
PullableEventStream _xmlStream
Constructor Detail |
---|
public ConfigAreaParser() throws ParserConfigurationException, SAXException
ParserConfigurationException
SAXException
Method Detail |
---|
public ConfigurationAreaProperties parse(File areaFile) throws SAXException
areaFile
- Versorungsdatei
SAXException
- Fehler beim parsen der Versorgungsdatei
IllegalArgumentException
- 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.private ConfigurationAreaProperties parseConfigurationArea() throws SAXException, InterruptedException
SAXException
- Fehler beim parsen
InterruptedException
- 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 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 parsen
InterruptedException
private ConfigurationAreaChangeInformation[] parseConfigurationChanges() throws SAXException, InterruptedException
SAXException
- Fehler beim parsen
InterruptedException
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 parsen
InterruptedException
private void ignoreElementStructureAndWarn() throws SAXException, InterruptedException
SAXException
- Fehler beim parsen
InterruptedException
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |