Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   //
   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 PM(kohsuke)-fcs 
   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
   // Any modifications to this file will be lost upon recompilation of the source schema. 
   // Generated on: 2007.03.26 at 04:39:11 PM CEST 
   //
   
   
   package org.jvnet.jaxbvalidation.tests.one.validation;
  
  {
  
  
      public void check(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
          if (draftValue!= null) {
              final org.jvnet.jaxbvalidation.tests.one.FdExParametersType value = ((org.jvnet.jaxbvalidation.tests.one.FdExParametersTypedraftValue);
              {
                  final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"PrintAllTransmissions");
                  if (!value.isSetPrintAllTransmissions()) {
                      // Report missing object
                      handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                  } else {
                      // Check value
                      fieldValidator.check(fieldLocatorhandlervalue.getPrintAllTransmissions());
                  }
              }
              {
                  final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"CenterDescriptors");
                  if (!value.isSetCenterDescriptors()) {
                      // Report missing object
                      handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                  } else {
                      // Check count
                      if (value.getCenterDescriptors().size()< 1) {
                          // Report minimum of occurences violated
                          handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getCenterDescriptors().size(), 1)));
                      }
                      // Check value
                      fieldValidator.check(fieldLocatorhandlervalue.getCenterDescriptors());
                  }
              }
              {
                  final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"AddresseeToPosition");
                  if (!value.isSetAddresseeToPosition()) {
                      // Report missing object
                      handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                  } else {
                      // Check count
                      if (value.getAddresseeToPosition().size()< 0) {
                          // Report minimum of occurences violated
                          handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getAddresseeToPosition().size(), 0)));
                      }
                      if (value.getAddresseeToPosition().size()> 40) {
                          // Report maximum of occurences violated
                          handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooManyElementsProblem(value.getAddresseeToPosition().size(), 40)));
                      }
                      // Check value
                      fieldValidator.check(fieldLocatorhandlervalue.getAddresseeToPosition());
                  }
              }
              if (value.isSetRestrictions()) {
                  // If left exists
                  {
                      final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"Restrictions");
                      if (!value.isSetRestrictions()) {
                          // Report missing object
                          handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                      } else {
                          // Check count
                          if (value.getRestrictions().size()< 0) {
                              // Report minimum of occurences violated
                              handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getRestrictions().size(), 0)));
                          }
                          // Check value
                          fieldValidator.check(fieldLocatorhandlervalue.getRestrictions());
                      }
                  }
              }
              {
                  final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"AcceptanceMessages");
                  if (!value.isSetAcceptanceMessages()) {
                      // Report missing object
                      handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                  } else {
                      // Check count
                      if (value.getAcceptanceMessages().size()< 1) {
                          // Report minimum of occurences violated
                          handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getAcceptanceMessages().size(), 1)));
                      }
                      // Check value
                      fieldValidator.check(fieldLocatorhandlervalue.getAcceptanceMessages());
                  }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"ExternalAdepAdesAddresses");
                 if (!value.isSetExternalAdepAdesAddresses()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getExternalAdepAdesAddresses().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getExternalAdepAdesAddresses().size(), 1)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getExternalAdepAdesAddresses());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"IFPSAddresses");
                 if (!value.isSetIFPSAddresses()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getIFPSAddresses().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getIFPSAddresses().size(), 1)));
                     }
                     if (value.getIFPSAddresses().size()> 2) {
                         // Report maximum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooManyElementsProblem(value.getIFPSAddresses().size(), 2)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getIFPSAddresses());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"ExternalFIRAddresses");
                 if (!value.isSetExternalFIRAddresses()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getExternalFIRAddresses().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getExternalFIRAddresses().size(), 1)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getExternalFIRAddresses());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"MSSSupervisor");
                 if (!value.isSetMSSSupervisor()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getMSSSupervisor());
                 }
             }
             if (value.isSetTCPIPConnections()) {
                 // If left exists
                 {
                     final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"TCPIPConnections");
                     if (!value.isSetTCPIPConnections()) {
                         // Report missing object
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                     } else {
                         // Check count
                         if (value.getTCPIPConnections().size()< 0) {
                             // Report minimum of occurences violated
                             handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getTCPIPConnections().size(), 0)));
                         }
                         // Check value
                         fieldValidator.check(fieldLocatorhandlervalue.getTCPIPConnections());
                     }
                 }
             }
             if (value.isSetMessagesRoutedtoMCQ()) {
                 // If left exists
                 {
                     final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"MessagesRoutedtoMCQ");
                     if (!value.isSetMessagesRoutedtoMCQ()) {
                         // Report missing object
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                     } else {
                         // Check count
                         if (value.getMessagesRoutedtoMCQ().size()< 0) {
                             // Report minimum of occurences violated
                             handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getMessagesRoutedtoMCQ().size(), 0)));
                         }
                         // Check value
                         fieldValidator.check(fieldLocatorhandlervalue.getMessagesRoutedtoMCQ());
                     }
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"ExternalBadOriginators");
                 if (!value.isSetExternalBadOriginators()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getExternalBadOriginators().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getExternalBadOriginators().size(), 1)));
                     }
                     if (value.getExternalBadOriginators().size()> 10) {
                         // Report maximum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooManyElementsProblem(value.getExternalBadOriginators().size(), 10)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getExternalBadOriginators());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"IFPZAddresses");
                 if (!value.isSetIFPZAddresses()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getIFPZAddresses().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getIFPZAddresses().size(), 1)));
                     }
                     if (value.getIFPZAddresses().size()> 21) {
                         // Report maximum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooManyElementsProblem(value.getIFPZAddresses().size(), 21)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getIFPZAddresses());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"MilitarycentersAFTNaddresses");
                 if (!value.isSetMilitarycentersAFTNaddresses()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getMilitarycentersAFTNaddresses().size()< 0) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getMilitarycentersAFTNaddresses().size(), 0)));
                     }
                     if (value.getMilitarycentersAFTNaddresses().size()> 2) {
                         // Report maximum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooManyElementsProblem(value.getMilitarycentersAFTNaddresses().size(), 2)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getMilitarycentersAFTNaddresses());
                 }
             }
             if (value.isSetCFMUTACTAddress()) {
                 // If left exists
                 {
                     final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"CFMUTACTAddress");
                     if (!value.isSetCFMUTACTAddress()) {
                         // Optional field - nothing to report
                     } else {
                         // Check value
                         fieldValidator.check(fieldLocatorhandlervalue.getCFMUTACTAddress());
                     }
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"Inhibitreceptions");
                 if (!value.isSetInhibitreceptions()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getInhibitreceptions().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getInhibitreceptions().size(), 1)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getInhibitreceptions());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"Inhibittransmissions");
                 if (!value.isSetInhibittransmissions()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getInhibittransmissions().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getInhibittransmissions().size(), 1)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getInhibittransmissions());
                 }
             }
             {
                 final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"FPLMessagesToBePrinted");
                 if (!value.isSetFPLMessagesToBePrinted()) {
                     // Report missing object
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                 } else {
                     // Check count
                     if (value.getFPLMessagesToBePrinted().size()< 1) {
                         // Report minimum of occurences violated
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getFPLMessagesToBePrinted().size(), 1)));
                     }
                     // Check value
                     fieldValidator.check(fieldLocatorhandlervalue.getFPLMessagesToBePrinted());
                 }
             }
             if (value.isSetAddresseeToPrinter()) {
                 // If left exists
                 {
                     final org.jvnet.jaxbcommons.locator.FieldObjectLocator fieldLocator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(locatorvalue"AddresseeToPrinter");
                     if (!value.isSetAddresseeToPrinter()) {
                         // Report missing object
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.EmptyFieldProblem()));
                     } else {
                         // Check count
                         if (value.getAddresseeToPrinter().size()< 0) {
                             // Report minimum of occurences violated
                             handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(fieldLocatornew org.jvnet.jaxbvalidation.problem.structure.TooFewElementsProblem(value.getAddresseeToPrinter().size(), 0)));
                         }
                         // Check value
                         fieldValidator.check(fieldLocatorhandlervalue.getAddresseeToPrinter());
                     }
                 }
             }
         }
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator parentLocatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             final java.util.List values = ((java.util.Listvalue);
             final org.jvnet.jaxbcommons.locator.ObjectLocator locator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(parentLocator"AcceptanceMessages");
             if (values!= null) {
                 for (int index = 0; (index<values.size()); index ++) {
                     java.lang.Object item = values.get(index);
                     checkEntry(locatorhandlerindexitem);
                 }
             }
         }
 
         public void checkEntry(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerint indexjava.lang.Object value) {
             final org.jvnet.jaxbcommons.locator.ObjectLocator entryLocator = new org.jvnet.jaxbcommons.locator.DefaultListEntryObjectLocator(locatorindex);
             checkValue(entryLocatorhandlervalue);
         }
 
         public void checkValue(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
             final org.jvnet.jaxbvalidation.tests.one.AcceptanceMessageType value = ((org.jvnet.jaxbvalidation.tests.one.AcceptanceMessageTypedraftValue);
             if (value instanceof org.jvnet.jaxbvalidation.tests.one.AcceptanceMessageType) {
                 org.jvnet.jaxbvalidation.tests.one.AcceptanceMessageType realValue = ((org.jvnet.jaxbvalidation.tests.one.AcceptanceMessageTypevalue);
                 {
                     // Check complex value
                     validator.check(locatorhandlerrealValue);
                 }
             } else {
                 if (null == value) {
                     // todo: report null
                 } else {
                     // Report wrong class
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatornew org.jvnet.jaxbvalidation.problem.structure.NonExpectedClassProblem(value.getClass())));
                 }
             }
         }
 
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator parentLocatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             final java.util.List values = ((java.util.Listvalue);
             final org.jvnet.jaxbcommons.locator.ObjectLocator locator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(parentLocator"AddresseeToPosition");
             if (values!= null) {
                 for (int index = 0; (index<values.size()); index ++) {
                     java.lang.Object item = values.get(index);
                     checkEntry(locatorhandlerindexitem);
                 }
             }
         }
 
         public void checkEntry(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerint indexjava.lang.Object value) {
             final org.jvnet.jaxbcommons.locator.ObjectLocator entryLocator = new org.jvnet.jaxbcommons.locator.DefaultListEntryObjectLocator(locatorindex);
             checkValue(entryLocatorhandlervalue);
         }
 
         public void checkValue(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
             if (value instanceof org.jvnet.jaxbvalidation.tests.one.AddresseeToPositionType) {
                 {
                     // Check complex value
                     validator.check(locatorhandlerrealValue);
                 }
             } else {
                 if (null == value) {
                     // todo: report null
                 } else {
                     // Report wrong class
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatornew org.jvnet.jaxbvalidation.problem.structure.NonExpectedClassProblem(value.getClass())));
                 }
             }
         }
 
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator parentLocatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             final java.util.List values = ((java.util.Listvalue);
             final org.jvnet.jaxbcommons.locator.ObjectLocator locator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(parentLocator"AddresseeToPrinter");
             if (values!= null) {
                 for (int index = 0; (index<values.size()); index ++) {
                     java.lang.Object item = values.get(index);
                     checkEntry(locatorhandlerindexitem);
                 }
             }
         }
 
         public void checkEntry(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerint indexjava.lang.Object value) {
             final org.jvnet.jaxbcommons.locator.ObjectLocator entryLocator = new org.jvnet.jaxbcommons.locator.DefaultListEntryObjectLocator(locatorindex);
             checkValue(entryLocatorhandlervalue);
         }
 
         public void checkValue(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
             final org.jvnet.jaxbvalidation.tests.one.AddresseeToPrinterType value = ((org.jvnet.jaxbvalidation.tests.one.AddresseeToPrinterTypedraftValue);
             if (value instanceof org.jvnet.jaxbvalidation.tests.one.AddresseeToPrinterType) {
                 org.jvnet.jaxbvalidation.tests.one.AddresseeToPrinterType realValue = ((org.jvnet.jaxbvalidation.tests.one.AddresseeToPrinterTypevalue);
                 {
                     // Check complex value
                     validator.check(locatorhandlerrealValue);
                 }
             } else {
                 if (null == value) {
                     // todo: report null
                 } else {
                     // Report wrong class
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatornew org.jvnet.jaxbvalidation.problem.structure.NonExpectedClassProblem(value.getClass())));
                 }
             }
         }
 
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             checkValue(locatorhandlervalue);
         }
 
         public void checkValue(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
             final java.lang.String value = ((java.lang.StringdraftValue);
             if (value instanceof java.lang.String) {
                 java.lang.String realValue = ((java.lang.Stringvalue);
                 // Check primitive value
                 {
                     // Perform the check
                     // Checking class com.sun.msv.datatype.xsd.MaxLengthFacet datatype
                     org.jvnet.jaxbvalidation.problem.datatype.ValueProblem problem = null;
                     if (((null == realValue)? 0 :realValue.length())>= 1) {
                         // Value length is correct
                     } else {
                         problem = new org.jvnet.jaxbvalidation.problem.datatype.TooShortProblem(realValue, ((null == realValue)? 0 :realValue.length()), 1);
                     }
                     if (((null == realValue)? 0 :realValue.length())<= 8) {
                         // Value length is correct
                     } else {
                         problem = new org.jvnet.jaxbvalidation.problem.datatype.TooLongProblem(realValue, ((null == realValue)? 0 :realValue.length()), 8);
                     }
                     if (null!= problem) {
                         // Handle event
                         handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatorproblem));
                     }
                 }
             } else {
                 if (null == value) {
                     // todo: report null
                 } else {
                     // Report wrong class
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatornew org.jvnet.jaxbvalidation.problem.structure.NonExpectedClassProblem(value.getClass())));
                 }
             }
         }
 
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator parentLocatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             final java.util.List values = ((java.util.Listvalue);
             final org.jvnet.jaxbcommons.locator.ObjectLocator locator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(parentLocator"CenterDescriptors");
             if (values!= null) {
                 for (int index = 0; (index<values.size()); index ++) {
                     java.lang.Object item = values.get(index);
                     checkEntry(locatorhandlerindexitem);
                 }
             }
         }
 
         public void checkEntry(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerint indexjava.lang.Object value) {
             final org.jvnet.jaxbcommons.locator.ObjectLocator entryLocator = new org.jvnet.jaxbcommons.locator.DefaultListEntryObjectLocator(locatorindex);
             checkValue(entryLocatorhandlervalue);
         }
 
         public void checkValue(org.jvnet.jaxbcommons.locator.ObjectLocator locatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object draftValue) {
             final org.jvnet.jaxbvalidation.tests.one.CenterDescriptorType value = ((org.jvnet.jaxbvalidation.tests.one.CenterDescriptorTypedraftValue);
             if (value instanceof org.jvnet.jaxbvalidation.tests.one.CenterDescriptorType) {
                 org.jvnet.jaxbvalidation.tests.one.CenterDescriptorType realValue = ((org.jvnet.jaxbvalidation.tests.one.CenterDescriptorTypevalue);
                 {
                     // Check complex value
                     validator.check(locatorhandlerrealValue);
                 }
             } else {
                 if (null == value) {
                     // todo: report null
                 } else {
                     // Report wrong class
                     handler.handleEvent(new org.jvnet.jaxbvalidation.event.ObjectValidationEvent(locatornew org.jvnet.jaxbvalidation.problem.structure.NonExpectedClassProblem(value.getClass())));
                 }
             }
         }
 
     }
 
     {
 
 
         public void check(org.jvnet.jaxbcommons.locator.ObjectLocator parentLocatorjavax.xml.bind.ValidationEventHandler handlerjava.lang.Object value) {
             final java.util.List values = ((java.util.Listvalue);
             final org.jvnet.jaxbcommons.locator.ObjectLocator locator = new org.jvnet.jaxbcommons.locator.DefaultFieldObjectLocator(parentLocator"ExternalAdepAdesAddresses");
             if (values!= null) {
                 for (int index = 0; (index<values.size()); index ++) {
                     java.lang.Object item = values.get(index);
                     checkEntry(locatorhandlerindexitem);
                 }
             }
         }
 
         public void checkEntry(org.jvnet.jaxbcommons.locator.ObjectLocator locator