public final class OverrideTransformationManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STATE_COLLISION |
static int |
STATE_CONTINUE |
static int |
STATE_DUPLICATE |
static int |
STATE_INCLUDE |
Constructor and Description |
---|
OverrideTransformationManager(XSDHandler handler,
OverrideTransformer overrideHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addSchemaRoot(java.lang.String schemaId,
org.w3c.dom.Element schemaRoot)
Add a schema to the list of processed schemas.
|
void |
checkSchemaRoot(java.lang.String schemaId,
org.w3c.dom.Element decl,
org.w3c.dom.Element schemaRoot)
Check original schema root for possible collision
|
int |
getCurrentState()
Return the state after immediate transformation
|
boolean |
hasCompositionalDecl(org.w3c.dom.Element schemaRoot) |
boolean |
hasGlobalDecl(org.w3c.dom.Element schemaRoot) |
void |
reset()
Reset state
|
void |
setOverrideHandler(OverrideTransformer overrideHandler)
Set
override transformer |
org.w3c.dom.Element |
transform(java.lang.String schemaId,
org.w3c.dom.Element overrideElement,
org.w3c.dom.Element targetSchema)
Perform override transformations on target schema.
|
public static final int STATE_INCLUDE
public static final int STATE_CONTINUE
public static final int STATE_DUPLICATE
public static final int STATE_COLLISION
public OverrideTransformationManager(XSDHandler handler, OverrideTransformer overrideHandler)
public void reset()
public org.w3c.dom.Element transform(java.lang.String schemaId, org.w3c.dom.Element overrideElement, org.w3c.dom.Element targetSchema)
public void addSchemaRoot(java.lang.String schemaId, org.w3c.dom.Element schemaRoot)
public void checkSchemaRoot(java.lang.String schemaId, org.w3c.dom.Element decl, org.w3c.dom.Element schemaRoot)
schemaId
- The system id of the schemaschemaRoot
- The root of the schemapublic int getCurrentState()
public void setOverrideHandler(OverrideTransformer overrideHandler)
override
transformeroverrideHandler
- override
transformer handler to setpublic boolean hasGlobalDecl(org.w3c.dom.Element schemaRoot)
public boolean hasCompositionalDecl(org.w3c.dom.Element schemaRoot)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.