public static void Load(this JavaGenericConstraints gcs, XmlReader reader)
        {
            reader.MoveToContent();

            if (reader.IsEmptyElement)
            {
                reader.Read();
            }
            else
            {
                reader.Read();

                do
                {
                    reader.MoveToContent();
                    if (reader.NodeType == XmlNodeType.EndElement)
                    {
                        break;                         // </genericConstraints>
                    }
                    if (reader.NodeType != XmlNodeType.Element || reader.LocalName != "genericConstraint")
                    {
                        throw XmlUtil.UnexpectedElementOrContent("genericConstraints", reader, "genericConstraint");
                    }
                    var gc = new JavaGenericConstraint();
                    gc.Load(reader);
                    gcs.GenericConstraints.Add(gc);
                } while (true);

                XmlUtil.VerifyEndElement(reader, "genericConstraints");
                reader.Read();
            }
        }
 public static void Load(this JavaGenericConstraint gc, XmlReader reader)
 {
     gc.Type = XmlUtil.GetRequiredAttribute(reader, "type");
     XmlUtil.CheckExtraneousAttributes("genericConstraint", reader, "type");
     reader.Skip();
 }