Package org.jibx.schema.elements

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


        out.close();
        return new String(out.toByteArray(), "US-ASCII");
    }

    private static Pattern createPattern(String patternString) {
        Pattern pattern = new Pattern();
        String[] elements = patternString.split("/", 6);
        pattern.setGroupId(elements[0]);
        pattern.setArtifactId(elements[1]);
        pattern.setVersion(elements[2]);
        pattern.setType(elements[3]);
        pattern.setModule(elements[4]);
        pattern.setName(elements[5]);
        return pattern;
    }
View Full Code Here


        out.close();
        return new String(out.toByteArray(), "US-ASCII");
    }

    private static Pattern createPattern(String patternString) {
        Pattern pattern = new Pattern();
        String[] elements = patternString.split("/", 6);
        pattern.setGroupId(elements[0]);
        pattern.setArtifactId(elements[1]);
        pattern.setVersion(elements[2]);
        pattern.setType(elements[3]);
        pattern.setModule(elements[4]);
        pattern.setName(elements[5]);
        return pattern;
    }
View Full Code Here

        out.close();
        return new String(out.toByteArray(), "US-ASCII");
    }

    private static Pattern createPattern(String patternString) {
        Pattern pattern = new Pattern();
        String[] elements = patternString.split("/", 6);
        pattern.setGroupId(elements[0]);
        pattern.setArtifactId(elements[1]);
        pattern.setVersion(elements[2]);
        pattern.setType(elements[3]);
        pattern.setModule(elements[4]);
        pattern.setName(elements[5]);
        return pattern;
    }
View Full Code Here

        out.close();
        return new String(out.toByteArray(), "US-ASCII");
    }

    private static Pattern createPattern(String patternString) {
        Pattern pattern = new Pattern();
        String[] elements = patternString.split("/", 6);
        pattern.setGroupId(elements[0]);
        pattern.setArtifactId(elements[1]);
        pattern.setVersion(elements[2]);
        pattern.setType(elements[3]);
        pattern.setModule(elements[4]);
        pattern.setName(elements[5]);
        return pattern;
    }
View Full Code Here

        out.close();
        return new String(out.toByteArray(), "US-ASCII");
    }

    private static Pattern createPattern(String patternString) {
        Pattern pattern = new Pattern();
        String[] elements = patternString.split("/", 6);
        pattern.setGroupId(elements[0]);
        pattern.setArtifactId(elements[1]);
        pattern.setVersion(elements[2]);
        pattern.setType(elements[3]);
        pattern.setModule(elements[4]);
        pattern.setName(elements[5]);
        return pattern;
    }
View Full Code Here

        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$Pattern

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.