|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.xml.util.IlrXmlDefaultNsResolver
public class IlrXmlDefaultNsResolver
This class helps converting an XML namespace into
a Java package name. This package contains the
Java components (class, type) translated from
a schema. It is useful when schemas are composed
of multiple recursive importations.
A list of (namespace, package) associations is to be registered.
When a namespace is missing in that list, the getPackage
return the default package initially set to the root package.
Constructor Summary | |
---|---|
IlrXmlDefaultNsResolver()
|
|
IlrXmlDefaultNsResolver(String defaultPck)
Build a namespace resolver given its default package. |
Method Summary | |
---|---|
void |
add(String namespace,
String pck)
register a new (namespace, package) association in the resolver. |
String |
getDefaultPackage()
Get the registered default package |
String |
getPackage(String namespace)
get the package name given its namespace. |
void |
setDefaultPackage(String defaultPck)
Set the default package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrXmlDefaultNsResolver()
public IlrXmlDefaultNsResolver(String defaultPck)
Method Detail |
---|
public String getDefaultPackage()
public String getPackage(String namespace)
getPackage
in interface IlrXmlNsResolver
public void setDefaultPackage(String defaultPck)
public void add(String namespace, String pck)
namespace
- the namespacepck
- the related Java package.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |