public class SchemaHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaHelper.XmlDoc |
| Constructor and Description |
|---|
SchemaHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
generateXSD(File xmlFile) |
static List<String> |
generateXSD(String xmlExample) |
static Optional<String> |
getDefaultValue(org.apache.xerces.xs.XSAttributeUse attributeDeclaration) |
static Optional<String> |
getDefaultValue(org.apache.xerces.xs.XSElementDeclaration element) |
static Collection<SchemaHelper.XmlDoc> |
getDocumentation(String annotationContent) |
static Double |
getDoubleValue(org.apache.xerces.xs.XSObject patternFacetObject) |
static org.apache.xerces.xs.XSObject |
getFacet(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl element,
int facetType) |
static Integer |
getIntegerValue(org.apache.xerces.xs.XSObject patternFacetObject) |
static String |
getLocalName(Element child) |
static boolean |
isDocumentationTag(Node child) |
public static Optional<String> getDefaultValue(org.apache.xerces.xs.XSElementDeclaration element)
public static Optional<String> getDefaultValue(org.apache.xerces.xs.XSAttributeUse attributeDeclaration)
public static Collection<SchemaHelper.XmlDoc> getDocumentation(String annotationContent)
public static boolean isDocumentationTag(Node child)
public static Integer getIntegerValue(org.apache.xerces.xs.XSObject patternFacetObject)
public static Double getDoubleValue(org.apache.xerces.xs.XSObject patternFacetObject)
public static List<String> generateXSD(String xmlExample) throws org.apache.xmlbeans.XmlException, IOException
org.apache.xmlbeans.XmlExceptionIOExceptionpublic static List<String> generateXSD(File xmlFile) throws org.apache.xmlbeans.XmlException, IOException
org.apache.xmlbeans.XmlExceptionIOExceptionpublic static org.apache.xerces.xs.XSObject getFacet(org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl element,
int facetType)
Copyright © 2017 MuleSoft, Inc.. All rights reserved.