|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindcrimeilab.xsanalyzer.util.XSModelHelper
public abstract class XSModelHelper
Constructor Summary | |
---|---|
XSModelHelper()
|
Method Summary | ||
---|---|---|
static
|
addComponents(org.apache.xerces.xs.XSNamedMap map,
List<T> list)
|
|
static String |
compositorToString(short compositor)
|
|
static Collection<org.apache.xerces.xs.XSObject> |
flat(org.apache.xerces.xs.XSObjectList list)
|
|
static org.apache.xerces.xs.XSTypeDefinition |
getBaseType(org.apache.xerces.xs.XSObject object)
|
|
static org.apache.xerces.xs.XSTypeDefinition |
getBaseType(org.apache.xerces.xs.XSSimpleTypeDefinition stypedef)
|
|
static Set<? extends org.apache.xerces.xs.XSTypeDefinition> |
getComponents(org.apache.xerces.xs.XSModel model,
List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
|
|
static Set<? extends org.apache.xerces.xs.XSTypeDefinition> |
getComponents(org.apache.xerces.xs.XSModel model,
List<org.apache.xerces.xs.XSNamespaceItem> namespaces,
short[] selectedTypes)
Returns all public and global types for a given set of namespaces |
|
static List<org.apache.xerces.xs.XSElementDeclaration> |
getElements(org.apache.xerces.xs.XSModel model,
List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
Returns all public and global elements for given set of namespaces |
|
static List<org.apache.xerces.impl.xs.XSGroupDecl> |
getGroups(org.apache.xerces.xs.XSModel model,
List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
|
|
static List<org.apache.xerces.xs.XSNamespaceItem> |
getNamespaceItemsAsList(org.apache.xerces.xs.XSModel model)
|
|
static org.apache.xerces.xs.XSNamespaceItem |
getTargetNamespace(org.apache.xerces.xs.XSModel model,
File schema)
Get target namespace from model. |
|
static boolean |
isSameTypeDefinition(org.apache.xerces.xs.XSObject lhs,
org.apache.xerces.xs.XSObject rhs)
Check if both values have the same name and namespace definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSModelHelper()
Method Detail |
---|
public static Set<? extends org.apache.xerces.xs.XSTypeDefinition> getComponents(org.apache.xerces.xs.XSModel model, List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
public static Set<? extends org.apache.xerces.xs.XSTypeDefinition> getComponents(org.apache.xerces.xs.XSModel model, List<org.apache.xerces.xs.XSNamespaceItem> namespaces, short[] selectedTypes)
model
- schemanamespaces
- List of namespaces
public static List<org.apache.xerces.xs.XSElementDeclaration> getElements(org.apache.xerces.xs.XSModel model, List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
model
- schemanamespaces
- List of namespaces
public static List<org.apache.xerces.impl.xs.XSGroupDecl> getGroups(org.apache.xerces.xs.XSModel model, List<org.apache.xerces.xs.XSNamespaceItem> namespaces)
public static List<org.apache.xerces.xs.XSNamespaceItem> getNamespaceItemsAsList(org.apache.xerces.xs.XSModel model)
public static boolean isSameTypeDefinition(org.apache.xerces.xs.XSObject lhs, org.apache.xerces.xs.XSObject rhs)
lhs
- rhs
-
public static Collection<org.apache.xerces.xs.XSObject> flat(org.apache.xerces.xs.XSObjectList list)
public static <T> void addComponents(org.apache.xerces.xs.XSNamedMap map, List<T> list)
public static org.apache.xerces.xs.XSTypeDefinition getBaseType(org.apache.xerces.xs.XSObject object)
object
-
public static org.apache.xerces.xs.XSTypeDefinition getBaseType(org.apache.xerces.xs.XSSimpleTypeDefinition stypedef)
public static org.apache.xerces.xs.XSNamespaceItem getTargetNamespace(org.apache.xerces.xs.XSModel model, File schema)
model
- schema
-
public static String compositorToString(short compositor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |