org.apache.wsif.compiler.schema.tools
Class Conventions
java.lang.Object
|
+--org.apache.wsif.compiler.schema.tools.Conventions
- public class Conventions
- extends java.lang.Object
Contain some static methods for mapping conventions.
Creation date: (6/20/00 5:05:21 PM)
Method Summary |
static java.lang.String |
getJavaFileName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI,
java.lang.String javaFileSuffix)
|
static java.lang.String |
getJavaPathName(java.lang.String targetDirectoryName,
java.lang.String packageName)
|
static boolean |
getVerbose()
|
static boolean |
JDKcompile(java.lang.String fileName,
java.lang.String workingDirectory)
|
static java.lang.String |
namespaceURI2JavaPath(java.lang.String namespaceURI)
Convert name space url into a directory name and a package name with '.' as delimiter. |
static java.lang.String |
schema2JavaName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI)
|
static java.lang.String |
schema2JavaName(org.w3c.dom.Node node,
java.lang.String targetURI)
This method takes an Element type and a target namespace uri and
return a fully qualified java class name. |
static java.lang.String |
schema2JavaName(java.lang.String schemaType,
java.lang.String schemaName,
boolean isClass)
Map top-level schema type names to corresponding java class names. |
static java.lang.String |
schema2NonQualifiedJavaName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI)
|
static void |
setVerbose(boolean ver)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Conventions
public Conventions()
namespaceURI2JavaPath
public static java.lang.String namespaceURI2JavaPath(java.lang.String namespaceURI)
throws java.lang.IllegalArgumentException
- Convert name space url into a directory name and a package name with '.' as delimiter.
Creation date: (5/30/00 9:56:31 PM)
- Parameters:
nameSpace
- java.lang.String- Returns:
- java.lang.String
schema2JavaName
public static java.lang.String schema2JavaName(java.lang.String schemaType,
java.lang.String schemaName,
boolean isClass)
throws java.lang.IllegalArgumentException
- Map top-level schema type names to corresponding java class names.
and map schema component names to java field names.
If schema name is intended to map to a Java class name then set the
boolean variable
isClass
to true. If the schema name
is mapped to a java field name, then set isClass
to false.
Creation date: (6/20/00 5:13:45 PM)
- Parameters:
schemaType
- java.lang.StringschemaName
- java.lang.StringisClass
- boolean- Returns:
- java.lang.String
schema2JavaName
public static java.lang.String schema2JavaName(org.w3c.dom.Node node,
java.lang.String targetURI)
- This method takes an Element type and a target namespace uri and
return a fully qualified java class name.
The targetURI is translated to java package name genericly.
If the targetURI is mapped specifically to a java package name, then
this method should NOT be used.
Creation date: (6/21/00 2:25:18 PM)
- Returns:
- java.lang.String
schema2JavaName
public static java.lang.String schema2JavaName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI)
schema2NonQualifiedJavaName
public static java.lang.String schema2NonQualifiedJavaName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI)
getJavaPathName
public static java.lang.String getJavaPathName(java.lang.String targetDirectoryName,
java.lang.String packageName)
getJavaFileName
public static java.lang.String getJavaFileName(org.w3c.dom.NodeList nl,
org.w3c.dom.NodeList targetURI,
java.lang.String javaFileSuffix)
JDKcompile
public static boolean JDKcompile(java.lang.String fileName,
java.lang.String workingDirectory)
throws java.lang.IllegalArgumentException
setVerbose
public static void setVerbose(boolean ver)
getVerbose
public static boolean getVerbose()
Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.