Package org.eclipse.xsd

Examples of org.eclipse.xsd.XSDWhiteSpaceFacet


                for (Iterator f = type.getFacets().iterator(); f.hasNext();) {
                    XSDFacet facet = (XSDFacet) f.next();

                    //white space
                    if (facet instanceof XSDWhiteSpaceFacet) {
                        XSDWhiteSpaceFacet whitespace = (XSDWhiteSpaceFacet) facet;

                        if (whitespace.getValue() == XSDWhiteSpace.REPLACE_LITERAL) {
                            text = Whitespace.REPLACE.preparse(text);
                        }

                        if (whitespace.getValue() == XSDWhiteSpace.COLLAPSE_LITERAL) {
                            text = Whitespace.COLLAPSE.preparse(text);
                        }

                        if (whitespace.getValue() == XSDWhiteSpace.PRESERVE_LITERAL) {
                            //do nothing
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of org.eclipse.xsd.XSDWhiteSpaceFacet

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.