|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.xsdimporter.utils.XSDUtility
public final class XSDUtility
Utility class providing convenience methods for importing XSD Schema documents.
Field Summary | |
---|---|
static String |
OPTIONAL
String for attribute value of use attribute, indicating optional usage. |
static String |
REQUIRED
String for attribute value of use attribute, indicating compulsory usage. |
static String |
SIMPLE_DATA_NAME
Name of SimpleData children of TOKEN Elements, holding the simple data type information for XSD exporter. |
static String |
UNBOUNDED
String for attribute value of maxOccurs attribute, indicating unlimited occurrence. |
Method Summary | |
---|---|
static void |
getRulesFromElement(Element root,
List<Element> elementRules)
Extract all rules from a subtree of Element , not including the root itself. |
static boolean |
isNCName(String name)
Check if name is unqualified (does not contain a colon). |
static Map<String,Object> |
prepareMetadata(RegexpInterval interval)
Create metadata for an element. |
static void |
setLambda(Element ret)
Set the parameter to RegexpType.LAMBDA element,
with all the valid constraints and make it immutable. |
static String |
trimNS(String qName)
Trims (cuts) namespace prefix from the beginning of element tag and returns it in original case. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UNBOUNDED
public static final String REQUIRED
public static final String OPTIONAL
public static final String SIMPLE_DATA_NAME
SimpleData
children of TOKEN Elements, holding the simple data type information for XSD exporter.
Method Detail |
---|
public static void getRulesFromElement(Element root, List<Element> elementRules) throws InterruptedException
Element
, not including the root itself.
root
- Root of the subtree from which we extract the rules.elementRules
- List where all the rules are stored.
InterruptedException
- When user interrupts operation.public static String trimNS(String qName)
qName
- String to be trimmed of its prefix.
public static boolean isNCName(String name)
name
is unqualified (does not contain a colon).
name
- Name to be checked.
true
if name
has no colon (':').public static Map<String,Object> prepareMetadata(RegexpInterval interval)
interval
- Valid interval specifying element occurrence limits.
public static void setLambda(Element ret)
RegexpType.LAMBDA
element,
with all the valid constraints and make it immutable.
ret
- Element to set as LAMBDA.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |