/* 528 */ stringValueMetaData.setTrim(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ }
/* */ });
/* 535 */ parameterType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 539 */ return new StringValueMetaData(value);
/* */ }
/* */
/* */ public void setValue(QName qName, ElementBinding element, Object owner, Object value)
/* */ {
/* 544 */ AbstractParameterMetaData parameter = (AbstractParameterMetaData)owner;
/* 545 */ StringValueMetaData svmd = (StringValueMetaData)value;
/* 546 */ org.jboss.beans.metadata.spi.ValueMetaData vmd = parameter.getValue();
/* 547 */ if ((vmd != null) && ((vmd instanceof StringValueMetaData)))
/* */ {
/* 549 */ StringValueMetaData previous = (StringValueMetaData)vmd;
/* 550 */ svmd.setReplace(previous.isReplace());
/* 551 */ svmd.setTrim(previous.isTrim());
/* 552 */ String type = previous.getType();
/* 553 */ if (type != null)
/* 554 */ svmd.setType(type);
/* */ }
/* 556 */ parameter.setValue(svmd);
/* */ }
/* */ });
/* 560 */ beanType.pushInterceptor(createQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 564 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 565 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 566 */ lifecycle.setType("create");
/* 567 */ bean.setCreate(lifecycle);
/* */ }
/* */ });
/* 572 */ beanFactoryType.pushInterceptor(createQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 576 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 577 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 578 */ lifecycle.setType("create");
/* 579 */ bean.setBeanCreate(lifecycle);
/* */ }
/* */ });
/* 584 */ beanType.pushInterceptor(startQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 588 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 589 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 590 */ lifecycle.setType("start");
/* 591 */ bean.setStart(lifecycle);
/* */ }
/* */ });
/* 596 */ beanFactoryType.pushInterceptor(startQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 600 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 601 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 602 */ lifecycle.setType("start");
/* 603 */ bean.setBeanStart(lifecycle);
/* */ }
/* */ });
/* 608 */ beanType.pushInterceptor(stopQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 612 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 613 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 614 */ lifecycle.setType("stop");
/* 615 */ bean.setStop(lifecycle);
/* */ }
/* */ });
/* 620 */ beanType.pushInterceptor(destroyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 624 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 625 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)child;
/* 626 */ lifecycle.setType("destroy");
/* 627 */ bean.setDestroy(lifecycle);
/* */ }
/* */ });
/* 632 */ TypeBinding lifecycleType = schemaBinding.getType(lifecycleTypeQName);
/* 633 */ lifecycleType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 637 */ return new AbstractLifecycleMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 642 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)o;
/* 643 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 645 */ String localName = attrs.getLocalName(i);
/* 646 */ if ("method".equals(localName))
/* 647 */ lifecycle.setMethodName(attrs.getValue(i));
/* 648 */ else if ("ignored".equals(localName))
/* 649 */ lifecycle.setIgnored(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 655 */ lifecycleType.pushInterceptor(parameterQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 659 */ AbstractLifecycleMetaData lifecycle = (AbstractLifecycleMetaData)parent;
/* 660 */ AbstractParameterMetaData parameter = (AbstractParameterMetaData)child;
/* 661 */ List parameters = lifecycle.getParameters();
/* 662 */ if (parameters == null)
/* */ {
/* 664 */ parameters = new ArrayList();
/* 665 */ lifecycle.setParameters(parameters);
/* */ }
/* 667 */ parameter.setIndex(parameters.size());
/* 668 */ parameters.add(parameter);
/* */ }
/* */ });
/* 673 */ beanType.pushInterceptor(propertyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 677 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 678 */ AbstractPropertyMetaData property = (AbstractPropertyMetaData)child;
/* 679 */ Set properties = bean.getProperties();
/* 680 */ if (properties == null)
/* */ {
/* 682 */ properties = new HashSet();
/* 683 */ bean.setProperties(properties);
/* */ }
/* 685 */ properties.add(property);
/* */ }
/* */ });
/* 690 */ beanFactoryType.pushInterceptor(propertyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 694 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 695 */ AbstractPropertyMetaData property = (AbstractPropertyMetaData)child;
/* 696 */ bean.addBeanProperty(property);
/* */ }
/* */ });
/* 701 */ beanType.pushInterceptor(dependsQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 705 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 706 */ AbstractDependencyMetaData dependency = (AbstractDependencyMetaData)child;
/* 707 */ Set depends = bean.getDepends();
/* 708 */ if (depends == null)
/* */ {
/* 710 */ depends = new HashSet();
/* 711 */ bean.setDepends(depends);
/* */ }
/* 713 */ depends.add(dependency);
/* */ }
/* */ });
/* 718 */ beanFactoryType.pushInterceptor(dependsQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 722 */ GenericBeanFactoryMetaData bean = (GenericBeanFactoryMetaData)parent;
/* 723 */ AbstractDependencyMetaData dependency = (AbstractDependencyMetaData)child;
/* 724 */ Set depends = bean.getDepends();
/* 725 */ if (depends == null)
/* */ {
/* 727 */ depends = new HashSet();
/* 728 */ bean.setDepends(depends);
/* */ }
/* 730 */ depends.add(dependency);
/* */ }
/* */ });
/* 735 */ beanType.pushInterceptor(demandQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 739 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 740 */ AbstractDemandMetaData demand = (AbstractDemandMetaData)child;
/* 741 */ Set demands = bean.getDemands();
/* 742 */ if (demands == null)
/* */ {
/* 744 */ demands = new HashSet();
/* 745 */ bean.setDemands(demands);
/* */ }
/* 747 */ demands.add(demand);
/* */ }
/* */ });
/* 752 */ beanFactoryType.pushInterceptor(demandQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 756 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 757 */ AbstractDemandMetaData demand = (AbstractDemandMetaData)child;
/* 758 */ Set demands = bean.getDemands();
/* 759 */ if (demands == null)
/* */ {
/* 761 */ demands = new HashSet();
/* 762 */ bean.setDemands(demands);
/* */ }
/* 764 */ demands.add(demand);
/* */ }
/* */ });
/* 769 */ beanType.pushInterceptor(supplyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 773 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 774 */ AbstractSupplyMetaData supply = (AbstractSupplyMetaData)child;
/* 775 */ Set supplies = bean.getSupplies();
/* 776 */ if (supplies == null)
/* */ {
/* 778 */ supplies = new HashSet();
/* 779 */ bean.setSupplies(supplies);
/* */ }
/* 781 */ supplies.add(supply);
/* */ }
/* */ });
/* 786 */ beanFactoryType.pushInterceptor(supplyQName, new DefaultElementInterceptor()
/* */ {
/* */ public void add(Object parent, Object child, QName name)
/* */ {
/* 790 */ AbstractBeanMetaData bean = (AbstractBeanMetaData)parent;
/* 791 */ AbstractSupplyMetaData supply = (AbstractSupplyMetaData)child;
/* 792 */ Set supplies = bean.getSupplies();
/* 793 */ if (supplies == null)
/* */ {
/* 795 */ supplies = new HashSet();
/* 796 */ bean.setSupplies(supplies);
/* */ }
/* 798 */ supplies.add(supply);
/* */ }
/* */ });
/* 803 */ TypeBinding propertyType = schemaBinding.getType(propertyTypeQName);
/* 804 */ configureValueBindings(propertyType);
/* 805 */ propertyType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 809 */ return new AbstractPropertyMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 814 */ AbstractPropertyMetaData property = (AbstractPropertyMetaData)o;
/* 815 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 817 */ String localName = attrs.getLocalName(i);
/* 818 */ if ("name".equals(localName)) {
/* 819 */ property.setName(attrs.getValue(i));
/* 820 */ } else if ("preinstantiate".equals(localName)) {
/* 821 */ property.setPreInstantiate(Boolean.parseBoolean(attrs.getValue(i))); } else {
/* 822 */ if ((!"class".equals(localName)) && (!"replace".equals(localName)) && (!"trim".equals(localName))) {
/* */ continue;
/* */ }
/* 825 */ org.jboss.beans.metadata.spi.ValueMetaData vmd = property.getValue();
/* */ StringValueMetaData svmd;
/* 826 */ if ((vmd == null) || (!(vmd instanceof StringValueMetaData)))
/* */ {
/* 828 */ StringValueMetaData svmd = new StringValueMetaData();
/* 829 */ property.setValue(svmd);
/* */ }
/* */ else
/* */ {
/* 833 */ svmd = (StringValueMetaData)vmd;
/* */ }
/* 835 */ if ("class".equals(localName))
/* 836 */ svmd.setType(attrs.getValue(i));
/* 837 */ else if ("replace".equals(localName))
/* 838 */ svmd.setReplace(Boolean.parseBoolean(attrs.getValue(i)));
/* 839 */ else if ("trim".equals(localName))
/* 840 */ svmd.setTrim(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ }
/* */
/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 847 */ AbstractPropertyMetaData x = (AbstractPropertyMetaData)o;
/* 848 */ String name = x.getName();
/* 849 */ if ((name == null) || (name.trim().length() == 0))
/* 850 */ throw new IllegalArgumentException("Null or empty property name.");
/* 851 */ return o;
/* */ }
/* */ });
/* 856 */ propertyType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 860 */ return new StringValueMetaData(value);
/* */ }
/* */
/* */ public void setValue(QName qName, ElementBinding element, Object owner, Object value)
/* */ {
/* 865 */ AbstractPropertyMetaData property = (AbstractPropertyMetaData)owner;
/* 866 */ StringValueMetaData svmd = (StringValueMetaData)value;
/* 867 */ org.jboss.beans.metadata.spi.ValueMetaData vmd = property.getValue();
/* 868 */ if ((vmd != null) && ((vmd instanceof StringValueMetaData)))
/* */ {
/* 870 */ StringValueMetaData previous = (StringValueMetaData)vmd;
/* 871 */ svmd.setReplace(previous.isReplace());
/* 872 */ svmd.setTrim(previous.isTrim());
/* 873 */ String type = previous.getType();
/* 874 */ if (type != null)
/* 875 */ svmd.setType(type);
/* */ }
/* 877 */ property.setValue(svmd);
/* */ }
/* */ });
/* 882 */ TypeBinding dependsType = schemaBinding.getType(dependsTypeQName);
/* 883 */ dependsType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 887 */ return new AbstractDependencyMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* */ }
/* */
/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 896 */ AbstractDependencyMetaData x = (AbstractDependencyMetaData)o;
/* 897 */ String name = (String)x.getDependency();
/* 898 */ if ((name == null) || (name.trim().length() == 0))
/* 899 */ throw new IllegalArgumentException("Null or empty dependency.");
/* 900 */ return o;
/* */ }
/* */ });
/* 905 */ dependsType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 909 */ return value;
/* */ }
/* */
/* */ public void setValue(QName qname, ElementBinding element, Object owner, Object value)
/* */ {
/* 914 */ AbstractDependencyMetaData depends = (AbstractDependencyMetaData)owner;
/* 915 */ depends.setDependency(value);
/* */ }
/* */ });
/* 920 */ TypeBinding demandType = schemaBinding.getType(demandTypeQName);
/* 921 */ demandType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 925 */ return new AbstractDemandMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 930 */ AbstractDemandMetaData demand = (AbstractDemandMetaData)o;
/* 931 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 933 */ String localName = attrs.getLocalName(i);
/* 934 */ if ("state".equals(localName))
/* 935 */ demand.setWhenRequired(new ControllerState(attrs.getValue(i)));
/* */ }
/* */ }
/* */
/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 941 */ AbstractDemandMetaData x = (AbstractDemandMetaData)o;
/* 942 */ String name = (String)x.getDemand();
/* 943 */ if ((name == null) || (name.trim().length() == 0))
/* 944 */ throw new IllegalArgumentException("Null or empty demand.");
/* 945 */ return o;
/* */ }
/* */ });
/* 950 */ demandType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 954 */ return value;
/* */ }
/* */
/* */ public void setValue(QName qname, ElementBinding element, Object owner, Object value)
/* */ {
/* 959 */ AbstractDemandMetaData demand = (AbstractDemandMetaData)owner;
/* 960 */ demand.setDemand(value);
/* */ }
/* */ });
/* 965 */ TypeBinding supplyType = schemaBinding.getType(supplyTypeQName);
/* 966 */ supplyType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 970 */ return new AbstractSupplyMetaData();
/* */ }
/* */
/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 975 */ AbstractSupplyMetaData x = (AbstractSupplyMetaData)o;
/* 976 */ String name = (String)x.getSupply();
/* 977 */ if ((name == null) || (name.trim().length() == 0))
/* 978 */ throw new IllegalArgumentException("Null or empty supply.");
/* 979 */ return o;
/* */ }
/* */ });
/* 984 */ supplyType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 988 */ return value;
/* */ }
/* */
/* */ public void setValue(QName qName, ElementBinding element, Object owner, Object value)
/* */ {
/* 993 */ AbstractSupplyMetaData supply = (AbstractSupplyMetaData)owner;
/* 994 */ supply.setSupply(value);
/* */ }
/* */ });
/* 999 */ TypeBinding dependencyType = schemaBinding.getType(dependencyTypeQName);
/* 1000 */ dependencyType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 1004 */ return new AbstractDependencyValueMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 1009 */ AbstractDependencyValueMetaData dependency = (AbstractDependencyValueMetaData)o;
/* 1010 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 1012 */ String localName = attrs.getLocalName(i);
/* 1013 */ if ("bean".equals(localName))
/* 1014 */ dependency.setValue(attrs.getValue(i));
/* 1015 */ else if ("property".equals(localName))
/* 1016 */ dependency.setProperty(attrs.getValue(i));
/* 1017 */ else if ("state".equals(localName))
/* 1018 */ dependency.setDependentState(new ControllerState(attrs.getValue(i)));
/* 1019 */ else if ("whenRequired".equals(localName))
/* 1020 */ dependency.setWhenRequiredState(new ControllerState(attrs.getValue(i)));
/* */ }
/* */ }
/* */
/* */ public Object endElement(Object o, QName qName, ElementBinding element)
/* */ {
/* 1026 */ AbstractDependencyValueMetaData x = (AbstractDependencyValueMetaData)o;
/* 1027 */ String name = (String)x.getUnderlyingValue();
/* 1028 */ if ((name == null) || (name.trim().length() == 0))
/* 1029 */ throw new IllegalArgumentException("Null or empty bean in injection/factory.");
/* 1030 */ return o;
/* */ }
/* */ });
/* 1035 */ TypeBinding injectionType = schemaBinding.getType(injectionTypeQName);
/* 1036 */ injectionType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 1040 */ AbstractInjectionValueMetaData vmd = new AbstractInjectionValueMetaData();
/* 1041 */ if ((parent instanceof AbstractPropertyMetaData))
/* */ {
/* 1043 */ AbstractPropertyMetaData x = (AbstractPropertyMetaData)parent;
/* 1044 */ vmd.setPropertyMetaData(x);
/* */ }
/* 1046 */ return vmd;
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 1051 */ AbstractInjectionValueMetaData injection = (AbstractInjectionValueMetaData)o;
/* 1052 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 1054 */ String localName = attrs.getLocalName(i);
/* 1055 */ if ("bean".equals(localName))
/* 1056 */ injection.setValue(attrs.getValue(i));
/* 1057 */ else if ("property".equals(localName))
/* 1058 */ injection.setProperty(attrs.getValue(i));
/* 1059 */ else if ("state".equals(localName))
/* 1060 */ injection.setDependentState(new ControllerState(attrs.getValue(i)));
/* 1061 */ else if ("whenRequired".equals(localName))
/* 1062 */ injection.setWhenRequiredState(new ControllerState(attrs.getValue(i)));
/* 1063 */ else if ("type".equals(localName))
/* 1064 */ injection.setInjectionType(AutowireType.getInstance(attrs.getValue(i)));
/* 1065 */ else if ("option".equals(localName))
/* 1066 */ injection.setInjectionOption(InjectionOption.getInstance(attrs.getValue(i)));
/* 1067 */ else if ("fromContext".equals(localName))
/* 1068 */ injection.setFromContext(FromContext.getInstance(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 1074 */ TypeBinding plainValueType = schemaBinding.getType(plainValueTypeQName);
/* 1075 */ plainValueType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 1079 */ return new StringValueMetaData();
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 1084 */ StringValueMetaData value = (StringValueMetaData)o;
/* 1085 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 1087 */ String localName = attrs.getLocalName(i);
/* 1088 */ if ("class".equals(localName))
/* 1089 */ value.setType(attrs.getValue(i));
/* 1090 */ else if ("replace".equals(localName))
/* 1091 */ value.setReplace(Boolean.parseBoolean(attrs.getValue(i)));
/* 1092 */ else if ("trim".equals(localName))
/* 1093 */ value.setTrim(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 1099 */ plainValueType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 1103 */ return value;
/* */ }
/* */
/* */ public void setValue(QName qName, ElementBinding element, Object owner, Object value)
/* */ {
/* 1108 */ StringValueMetaData valueMetaData = (StringValueMetaData)owner;
/* 1109 */ valueMetaData.setValue(value);
/* */ }
/* */ });
/* 1114 */ TypeBinding valueType = schemaBinding.getType(valueTypeQName);
/* 1115 */ configureValueBindings(valueType);
/* 1116 */ valueType.setHandler(new DefaultElementHandler()
/* */ {
/* */ public Object startElement(Object parent, QName name, ElementBinding element)
/* */ {
/* 1120 */ return new AbstractValueMetaData(new StringValueMetaData());
/* */ }
/* */
/* */ public void attributes(Object o, QName elementName, ElementBinding element, Attributes attrs, NamespaceContext nsCtx)
/* */ {
/* 1125 */ AbstractValueMetaData value = (AbstractValueMetaData)o;
/* 1126 */ StringValueMetaData string = (StringValueMetaData)value.getValue();
/* 1127 */ for (int i = 0; i < attrs.getLength(); i++)
/* */ {
/* 1129 */ String localName = attrs.getLocalName(i);
/* 1130 */ if ("class".equals(localName))
/* 1131 */ string.setType(attrs.getValue(i));
/* 1132 */ else if ("replace".equals(localName))
/* 1133 */ string.setReplace(Boolean.parseBoolean(attrs.getValue(i)));
/* 1134 */ else if ("trim".equals(localName))
/* 1135 */ string.setTrim(Boolean.parseBoolean(attrs.getValue(i)));
/* */ }
/* */ }
/* */ });
/* 1141 */ valueType.setSimpleType(new CharactersHandler()
/* */ {
/* */ public Object unmarshal(QName qName, TypeBinding typeBinding, NamespaceContext nsCtx, org.jboss.xb.binding.metadata.ValueMetaData valueMetaData, String value)
/* */ {
/* 1145 */ return value;
/* */ }