public override void parse(XmlBContext ctxt, string endingTag)
{
#pragma warning disable 0168, 0219
int indicator = 0;
char quoteChar;
string tempStr = null;
bool fl2025;
bool fl2026;
bool fl2027;
bool fl2028;
bool fl2029;
bool fl2030;
bool fl2031;
bool fl2032;
bool fl2033;
bool fl2034;
bool fl2035;
bool fl2036;
bool fl2037;
bool fl2038;
bool fl2039;
bool fl2040;
bool fl2041;
bool fl2042;
bool fl2043;
bool fl2044;
bool fl2045;
bool fl2046;
bool fl2047;
#pragma warning restore 0168, 0219
ctxt.skipWhiteSpace();
{
// Accept Attributes
fl2025 = false ;
fl2026 = false ;
fl2027 = false ;
fl2028 = false ;
fl2029 = false ;
fl2030 = false ;
fl2031 = false ;
fl2032 = false ;
fl2033 = false ;
fl2034 = false ;
fl2035 = false ;
fl2036 = false ;
fl2037 = false ;
fl2038 = false ;
fl2039 = false ;
fl2040 = false ;
fl2041 = false ;
fl2042 = false ;
fl2043 = false ;
fl2044 = false ;
fl2045 = false ;
fl2046 = false ;
fl2047 = true ;
while (fl2047) { // BeginLoop
switch (ctxt.current()) {
case 'v':
{
ctxt.advance();
if (ctxt.lookAheadString("ersion=")){
indicator = 2035;
} else {
indicator = 2048;
} // If
break;
} // Case
case 't':
{
ctxt.advance();
switch (ctxt.current()) {
case 'y':
{
ctxt.advance();
if (ctxt.lookAhead3('p','e','=')){
indicator = 2027;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'r':
{
ctxt.advance();
if (ctxt.lookAheadString("ackside=")){
indicator = 2041;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'e':
{
ctxt.advance();
if (ctxt.lookAheadString("sted=")){
indicator = 2034;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
break;
} // Case
case 's':
{
ctxt.advance();
switch (ctxt.current()) {
case 't':
{
ctxt.advance();
if (ctxt.lookAheadString("atus=")){
indicator = 2033;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'p':
{
ctxt.advance();
if (ctxt.lookAheadString("ecIssue=")){
indicator = 2037;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'c':
{
ctxt.advance();
if (ctxt.lookAheadString("ope=")){
indicator = 2028;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
break;
} // Case
case 'r':
{
ctxt.advance();
switch (ctxt.current()) {
case 'o':
{
ctxt.advance();
if (ctxt.lookAheadString("llinkstock=")){
indicator = 2042;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'e':
{
ctxt.advance();
if (ctxt.lookAheadString("viewed=")){
indicator = 2032;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
break;
} // Case
case 'o':
{
ctxt.advance();
switch (ctxt.current()) {
case 'p':
{
ctxt.advance();
if (ctxt.lookAheadString("tional=")){
indicator = 2030;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'n':
{
ctxt.advance();
if (ctxt.lookAheadString("board=")){
indicator = 2040;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
break;
} // Case
case 'n':
{
ctxt.advance();
if (ctxt.lookAheadString("ame=")){
indicator = 2031;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'i':
{
ctxt.advance();
switch (ctxt.current()) {
case 'n':
{
ctxt.advance();
if (ctxt.lookAheadString("foRequired=")){
indicator = 2036;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'd':
{
ctxt.advance();
if (ctxt.lookAhead1('=')){
indicator = 2025;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
break;
} // Case
case 'g':
{
ctxt.advance();
if (ctxt.lookAheadString("uid=")){
indicator = 2026;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'f':
{
ctxt.advance();
if (ctxt.lookAheadString("unctionalBlock")){
switch (ctxt.current()) {
case 'N':
{
ctxt.advance();
if (ctxt.lookAheadString("ame=")){
indicator = 2039;
} else {
indicator = 2048;
} // If
break;
} // Case
case '=':
{
ctxt.advance();
indicator = 2038;
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
} else {
indicator = 2048;
} // If
break;
} // Case
case 'b':
{
ctxt.advance();
if (ctxt.lookAhead2('l','=')){
indicator = 2029;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'U':
{
ctxt.advance();
if (ctxt.lookAheadString("pdates=")){
indicator = 2045;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'N':
{
ctxt.advance();
if (ctxt.lookAheadString("ame=")){
indicator = 2043;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'I':
{
ctxt.advance();
if (ctxt.lookAheadString("sRemoved=")){
indicator = 2046;
} else {
indicator = 2048;
} // If
break;
} // Case
case 'G':
{
ctxt.advance();
if (ctxt.lookAheadString("uid=")){
indicator = 2044;
} else {
indicator = 2048;
} // If
break;
} // Case
default:
indicator = 2048;
break;
} // Switch
switch (indicator) {
case 2025: {
// Handling attribute id
// Also handles alien attributes with prefix id
if (fl2025){
ctxt.fail ("Duplicate attribute: id");
} // If
fl2025 = true ;
quoteChar = ctxt.acceptQuote();
this.setId((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2026: {
// Handling attribute guid
// Also handles alien attributes with prefix guid
if (fl2026){
ctxt.fail ("Duplicate attribute: guid");
} // If
fl2026 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteGuid((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2027: {
// Handling attribute type
// Also handles alien attributes with prefix type
if (fl2027){
ctxt.fail ("Duplicate attribute: type");
} // If
fl2027 = true ;
quoteChar = ctxt.acceptQuote();
this.setType(acceptor.lAcceptEnum_Paragraph_type(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2028: {
// Handling attribute scope
// Also handles alien attributes with prefix scope
if (fl2028){
ctxt.fail ("Duplicate attribute: scope");
} // If
fl2028 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteScope(acceptor.lAcceptEnum_Paragraph_scope(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2029: {
// Handling attribute bl
// Also handles alien attributes with prefix bl
if (fl2029){
ctxt.fail ("Duplicate attribute: bl");
} // If
fl2029 = true ;
quoteChar = ctxt.acceptQuote();
this.setBl((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2030: {
// Handling attribute optional
// Also handles alien attributes with prefix optional
if (fl2030){
ctxt.fail ("Duplicate attribute: optional");
} // If
fl2030 = true ;
quoteChar = ctxt.acceptQuote();
this.setOptional(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2031: {
// Handling attribute name
// Also handles alien attributes with prefix name
if (fl2031){
ctxt.fail ("Duplicate attribute: name");
} // If
fl2031 = true ;
quoteChar = ctxt.acceptQuote();
this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2032: {
// Handling attribute reviewed
// Also handles alien attributes with prefix reviewed
if (fl2032){
ctxt.fail ("Duplicate attribute: reviewed");
} // If
fl2032 = true ;
quoteChar = ctxt.acceptQuote();
this.setReviewed(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2033: {
// Handling attribute status
// Also handles alien attributes with prefix status
if (fl2033){
ctxt.fail ("Duplicate attribute: status");
} // If
fl2033 = true ;
quoteChar = ctxt.acceptQuote();
this.setImplementationStatus(acceptor.lAcceptEnum_SPEC_IMPLEMENTED_ENUM(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2034: {
// Handling attribute tested
// Also handles alien attributes with prefix tested
if (fl2034){
ctxt.fail ("Duplicate attribute: tested");
} // If
fl2034 = true ;
quoteChar = ctxt.acceptQuote();
this.setTested(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2035: {
// Handling attribute version
// Also handles alien attributes with prefix version
if (fl2035){
ctxt.fail ("Duplicate attribute: version");
} // If
fl2035 = true ;
quoteChar = ctxt.acceptQuote();
this.setVersion((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2036: {
// Handling attribute infoRequired
// Also handles alien attributes with prefix infoRequired
if (fl2036){
ctxt.fail ("Duplicate attribute: infoRequired");
} // If
fl2036 = true ;
quoteChar = ctxt.acceptQuote();
this.setMoreInfoRequired(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2037: {
// Handling attribute specIssue
// Also handles alien attributes with prefix specIssue
if (fl2037){
ctxt.fail ("Duplicate attribute: specIssue");
} // If
fl2037 = true ;
quoteChar = ctxt.acceptQuote();
this.setSpecIssue(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2038: {
// Handling attribute functionalBlock
// Also handles alien attributes with prefix functionalBlock
if (fl2038){
ctxt.fail ("Duplicate attribute: functionalBlock");
} // If
fl2038 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteFunctionalBlock(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2039: {
// Handling attribute functionalBlockName
// Also handles alien attributes with prefix functionalBlockName
if (fl2039){
ctxt.fail ("Duplicate attribute: functionalBlockName");
} // If
fl2039 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteFunctionalBlockName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2040: {
// Handling attribute onboard
// Also handles alien attributes with prefix onboard
if (fl2040){
ctxt.fail ("Duplicate attribute: onboard");
} // If
fl2040 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteScopeOnBoard(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2041: {
// Handling attribute trackside
// Also handles alien attributes with prefix trackside
if (fl2041){
ctxt.fail ("Duplicate attribute: trackside");
} // If
fl2041 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteScopeTrackside(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2042: {
// Handling attribute rollinkstock
// Also handles alien attributes with prefix rollinkstock
if (fl2042){
ctxt.fail ("Duplicate attribute: rollinkstock");
} // If
fl2042 = true ;
quoteChar = ctxt.acceptQuote();
this.setObsoleteScopeRollingStock(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2043: {
// Handling attribute Name
// Also handles alien attributes with prefix Name
if (fl2043){
ctxt.fail ("Duplicate attribute: Name");
} // If
fl2043 = true ;
quoteChar = ctxt.acceptQuote();
this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2044: {
// Handling attribute Guid
// Also handles alien attributes with prefix Guid
if (fl2044){
ctxt.fail ("Duplicate attribute: Guid");
} // If
fl2044 = true ;
quoteChar = ctxt.acceptQuote();
this.setGuid((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2045: {
// Handling attribute Updates
// Also handles alien attributes with prefix Updates
if (fl2045){
ctxt.fail ("Duplicate attribute: Updates");
} // If
fl2045 = true ;
quoteChar = ctxt.acceptQuote();
this.setUpdates((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
case 2046: {
// Handling attribute IsRemoved
// Also handles alien attributes with prefix IsRemoved
if (fl2046){
ctxt.fail ("Duplicate attribute: IsRemoved");
} // If
fl2046 = true ;
quoteChar = ctxt.acceptQuote();
this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
break;
} // End of dispatch label
// Final default label
case 2048: {
// Taking ignorable attributes into account
if (ctxt.isAlNum()){
ctxt.skipTill ('=');
ctxt.advance();
ctxt.skipWhiteSpace();
quoteChar = ctxt.acceptQuote();
ctxt.skipTill (quoteChar);
ctxt.accept(quoteChar);
ctxt.skipWhiteSpace();
} else {
if (!fl2025){
ctxt.fail ("Mandatory attribute missing: id in Paragraph");
} // If
if (!fl2026){
this.setObsoleteGuid("");
} // If
if (!fl2027){
this.setType(acceptor.Paragraph_type.aREQUIREMENT);
} // If
if (!fl2028){
this.setObsoleteScope(acceptor.Paragraph_scope.aOBU_AND_TRACK);
} // If
if (!fl2029){
this.setBl("");
} // If
if (!fl2030){
this.setOptional( true);
} // If
if (!fl2031){
this.setName("");
} // If
if (!fl2032){
this.setReviewed( false);
} // If
if (!fl2033){
this.setImplementationStatus(acceptor.SPEC_IMPLEMENTED_ENUM.Impl_NA);
} // If
if (!fl2034){
this.setTested( false);
} // If
if (!fl2035){
this.setVersion("3.0.0");
} // If
if (!fl2036){
this.setMoreInfoRequired( false);
} // If
if (!fl2037){
this.setSpecIssue( false);
} // If
if (!fl2038){
this.setObsoleteFunctionalBlock( false);
} // If
if (!fl2039){
this.setObsoleteFunctionalBlockName("");
} // If
if (!fl2040){
this.setObsoleteScopeOnBoard( false);
} // If
if (!fl2041){
this.setObsoleteScopeTrackside( false);
} // If
if (!fl2042){
this.setObsoleteScopeRollingStock( false);
} // If
if (!fl2046){
this.setIsRemoved( false);
} // If
fl2047 = false ;
} // If
break;
} // End of dispatch label
} // Dispatch
} // While
}
ctxt.skipWhiteSpace();
ctxt.accept('>');
parseBody(ctxt);
ctxt.acceptString(endingTag);
}