Package org.jibx.schema.elements

Examples of org.jibx.schema.elements.FacetElement$MaxInclusive


        constr.addParameter("value", "java.lang.String");
       
        // create a static instance of class for each enumeration value
        ArrayList enumpairs = new ArrayList();
        for (int i = 0; i < facets.size(); i++) {
            FacetElement facet = (FacetElement)facets.get(i);
            if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
               
                // get value for this enumeration element
                FacetElement.Enumeration enumelem = (Enumeration)facet;
                String value = enumelem.getValue();
               
View Full Code Here


        // check names to be used for enumeration values
        boolean isdiff = false;
        ArrayList enums = new ArrayList();
        ArrayList names = new ArrayList();
        for (int i = 0; i < facets.size(); i++) {
            FacetElement facet = (FacetElement)facets.get(i);
            if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
               
                // get value for this enumeration element
                FacetElement.Enumeration enumelem = (Enumeration)facet;
                enums.add(enumelem);
                String value = enumelem.getValue();
View Full Code Here

            SimpleTypeElement type = (SimpleTypeElement)comp;
            if (type.getDerivation().type() == SchemaBase.RESTRICTION_TYPE) {
                SimpleRestrictionElement restrict = (SimpleRestrictionElement)type.getDerivation();
                FilteredSegmentList facets = restrict.getFacetsList();
                for (int i = 0; i < facets.size(); i++) {
                    FacetElement facet = (FacetElement)facets.get(i);
                    if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
                        return true;
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jibx.schema.elements.FacetElement$MaxInclusive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.