super.startElement(myElement);
}
public void endElement()
throws HandlerException {
Element myElement = elementStack.pop();
// handle volume recognition sequence
if (myElement.getId() == SabreUDFElement.UDFElementType.VolumeRecognitionSequence) {
createAndPassVRS();
}
// handle anchor volume descriptor pointer
else if (myElement.getId() == SabreUDFElement.UDFElementType.AnchorVolumeDescriptorPointer) {
createAndPassAVDP();
}
// handle primary volume descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.PrimaryVolumeDescriptor) {
createAndPassPVD();
}
// handle partition descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.PartitionDescriptor) {
createAndPassPD();
}
// handle logical volume descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.LogicalVolumeDescriptor) {
createAndPassLVD();
}
// handle unallocated space descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.UnallocatedSpaceDescriptor) {
createAndPassUSD();
}
// handle implementation use volume descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.ImplementationUseVolumeDescriptor) {
createAndPassIUVD();
}
// handle terminationg descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.TerminatingDescriptor) {
createAndPassTD();
}
// handle logical volume integrity descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.LogicalVolumeIntegrityDescriptor) {
createAndPassLVID();
}
// handle fileset descriptor
else if (myElement.getId() == SabreUDFElement.UDFElementType.FileSetDescriptor) {
createAndPassFSD();
}
// handle file entry
else if (myElement.getId() == SabreUDFElement.UDFElementType.FileEntry) {
createAndPassFE();
}
// handle metadata file
else if (myElement.getId() == SabreUDFElement.UDFElementType.MetadataFile) {
createAndPassMetadataFile();
}
super.endElement();
}