|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.xml.io.Namespaces
Namespaces is the storehouse of a list of IQNamed. Among these are Types and SchemaEntries from a schema, and if you're based around a WSDL, the Ports, Parts, Messages, PortTypes and Bindings associated with the WSDL.
| Field Summary |
| Constructor Summary | |
Namespaces(java.lang.String version)
|
|
Namespaces(java.lang.String version,
java.lang.String encodingStyle)
Construct a Namespaces object for a given version of XML Schema. |
|
| Method Summary | |
void |
addItem(IQNamed item)
|
void |
cacheSchema(Schema schema)
|
Schema |
createSchema(java.lang.String targetNamespace,
boolean qualifyElements,
boolean qualifyAttributes)
|
Schema |
findSchema(java.lang.String targetNamespace)
|
Type |
getCachedTypeWithJavaClass(java.lang.Class javaClass)
Return the type that maps to this javaClass if one has been cached. |
Type |
getCachedTypeWithJavaName(java.lang.String javaName)
Search only the cached types in this namespaces for a type representing the javaName. |
java.lang.String |
getEncodingStyle()
|
boolean |
getEnforceEncodingStyle()
|
IQNamed |
getItem(java.lang.String qname,
java.lang.Class javaClass)
Give me the IQNamed item for the qname that is an instance of the javaClass. |
IQNamed |
getItem(java.lang.String namespace,
java.lang.String name,
java.lang.Class javaClass)
Give me the item represented by the namespace and name that is an instance of the java class. |
IQNamed[] |
getItems()
|
java.util.Enumeration |
getItems(java.lang.Class javaClass)
Give me all the IQNamed items that are instances of a certain class. |
Schema |
getSchema(java.lang.String targetNamespace)
|
Type |
getTypeWithJavaClass(java.lang.Class javaClass)
Return the dominant type for the specified javaClass. |
Type |
getTypeWithQName(Element element,
java.lang.String qname)
|
Type |
getTypeWithQName(java.lang.String qname)
Return a type for the given qname. |
Type |
getTypeWithQName(java.lang.String namespace,
java.lang.String name)
|
Type |
getTypeWithSchema(java.lang.String namespace,
java.lang.String name,
Element schema)
Probably not suitable for external use. |
java.lang.String |
getVersion()
|
void |
removeItem(IQNamed item)
|
void |
setEncodingStyle(java.lang.String encodingStyle)
|
void |
setEnforceEncodingStyle(boolean enforce)
|
void |
setVersion(java.lang.String version)
This is used in mappings to set the version of XSD after the product has been started up. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Namespaces(java.lang.String version)
version -
public Namespaces(java.lang.String version,
java.lang.String encodingStyle)
version - | Method Detail |
public void setEncodingStyle(java.lang.String encodingStyle)
encodingStyle - public java.lang.String getEncodingStyle()
public void setEnforceEncodingStyle(boolean enforce)
enforce - true if only types that match this
namespace's encoding style are allowed.public boolean getEnforceEncodingStyle()
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - public IQNamed[] getItems()
public java.util.Enumeration getItems(java.lang.Class javaClass)
javaClass - public void addItem(IQNamed item)
item - public void removeItem(IQNamed item)
item -
public IQNamed getItem(java.lang.String qname,
java.lang.Class javaClass)
throws SchemaException
qname - javaClass -
SchemaException
public IQNamed getItem(java.lang.String namespace,
java.lang.String name,
java.lang.Class javaClass)
throws SchemaException
namespace - name - javaClass -
SchemaException
public Type getTypeWithJavaClass(java.lang.Class javaClass)
throws SchemaException
javaClass -
SchemaException
public Type getTypeWithQName(java.lang.String qname)
throws SchemaException
qname -
SchemaException
public Type getTypeWithQName(java.lang.String namespace,
java.lang.String name)
throws SchemaException
namespace - name -
SchemaException
public Type getTypeWithQName(Element element,
java.lang.String qname)
throws SchemaException
element - qname -
SchemaException
public Type getTypeWithSchema(java.lang.String namespace,
java.lang.String name,
Element schema)
throws SchemaException
namespace - name - schema -
SchemaExceptionpublic void cacheSchema(Schema schema)
schema - public Schema getSchema(java.lang.String targetNamespace)
targetNamespace - public Schema findSchema(java.lang.String targetNamespace)
targetNamespace -
public Schema createSchema(java.lang.String targetNamespace,
boolean qualifyElements,
boolean qualifyAttributes)
targetNamespace - qualifyElements - qualifyAttributes -
public Type getCachedTypeWithJavaClass(java.lang.Class javaClass)
throws SchemaException
javaClass -
SchemaException
public Type getCachedTypeWithJavaName(java.lang.String javaName)
throws SchemaException
javaName -
SchemaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||