com.bowstreet.webapp.util
Class WebAppSchema
java.lang.Object
com.bowstreet.webapp.util.WebAppSchema
public class WebAppSchema
- extends java.lang.Object
This utility class mediates between the Schema and the WebApp, providing
methods to store the SchemaPaths in the WebApp (SchemaPath objects record
where a Schema can be found) and methods to retrieve them and iterate through them.
So if there are several Schema builders in a model, their regen will cause
there to be a SchemaPath for each one of them to be stored into the WebApp.
The methods in here are used to do that, and can be used to retrieve that
information (and the Schemas they point at) too.
- See Also:
Schema
,
WebApp
-
Method Summary |
static void |
_storeSchemaPath(Schema schema,
com.bowstreet.xml.schema.SchemaPath sp,
WebApp webapp)
|
static java.net.URL |
buildURLfromString(java.lang.String uri)
|
static boolean |
hasUniqueNamespace(WebApp webapp,
Schema schema,
java.lang.StringBuffer sbClash)
Compares the targetnamespace provided against that of all
of the other schemas currently registered in the webapp, and returns true
if no match, or false if there's a conflict. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISABLE_DUPLICATE_NAMESPACE_CHECK
public static final java.lang.String DISABLE_DUPLICATE_NAMESPACE_CHECK
- See Also:
- Constant Field Values
WebAppSchema
public WebAppSchema()
_storeSchemaPath
public static void _storeSchemaPath(Schema schema,
com.bowstreet.xml.schema.SchemaPath sp,
WebApp webapp)
buildURLfromString
public static java.net.URL buildURLfromString(java.lang.String uri)
hasUniqueNamespace
public static boolean hasUniqueNamespace(WebApp webapp,
Schema schema,
java.lang.StringBuffer sbClash)
- Compares the targetnamespace provided against that of all
of the other schemas currently registered in the webapp, and returns true
if no match, or false if there's a conflict. In the event that a conflict
is found the namespace and conflicting schema path are returned in the stringbuffer
provided.
- Parameters:
webapp
- the current webappschema
- the namespace to be verifiedsbClash
- if result is false will contain the namespace and schema path in conflict
- Returns:
- true if no conflict with targetnamespace of any other schema in the webapp
Copyright © 2009 IBM. All Rights Reserved.