|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.schema.DefaultDocumentOptions
Structure for passing options to createDefaultDocument in SOMSchema. This class is used to pass parameters to the createDefaultDocument method in SOMSchema. In order to create a document based on a SOMSchema, the root element name from the schema is required, and space to create the document, targetDocument. Options:
SOMSchema mySchema ... ... DefaultDocumentOptions options = new DefaultDocumentOptions(); options.setRootName("purchaseOrder"); options.setForceMinOccurs(2); mySchema.createDefaultDocument(options); ...
SOMSchema.createDefaultDocument(com.bea.schema.DefaultDocumentOptions)
Constructor Summary | |
DefaultDocumentOptions()
|
Method Summary | |
boolean |
getForceAttrValues()
Force Attribute values. |
int |
getForceMinOccurs()
Force minOccurs value. |
String |
getNamespacePrefix()
Get the namespace prefix that will be used in the default document. |
boolean |
getNamespacesEnabled()
Get an indication of whether namespaces will be honored/used in the default document generated. |
SOMElement |
getRootElement()
Get the SOMElement that will act as the root element for the new document. |
String |
getRootName()
the name of the root element set by setRootName |
String |
getSchemaLocation()
|
Document |
getTargetDocument()
the document. |
IDocument |
getTargetIDocument()
the document. |
String |
getTargetNamespace()
|
void |
setForceAttrValues(boolean forceAttrValues)
Force Element attributes. |
void |
setForceMinOccurs(int forceMinOccurs)
Force minimum occurs (minOccurs). |
void |
setNamespacePrefix(String prefix)
Set the namespace prefix to use in the default document (ignored if getNamespacesEnabled() returns false. |
void |
setNamespacesEnabled(boolean newValue)
Set namespace usage enabled/disabled when generating default XML. |
void |
setRootElement(SOMElement rootElem)
Specify a SOMElement that will act as the root element for the new document. |
void |
setRootName(String rootName)
specify the name of the element from the schema to be used as the root element for the new document. |
void |
setSchemaLocation(String schemaLocation)
set xsi document attribute. |
void |
setSchemaLocation(String targetNamespace,
String schemaLocation)
set xsi document attribute. |
void |
setTargetDocument(Document targetDocument)
set a target document holder for the default document to be created. |
void |
setTargetDocument(IDocument targetDocument)
set a target document holder for the default document to be created. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultDocumentOptions()
Method Detail |
public void setRootName(String rootName)
rootName
- the name of an element in the root of the SOMSchemapublic String getRootName()
public void setRootElement(SOMElement rootElem)
rootElem
- the SOMElement that will act as the root element for the
new document.public SOMElement getRootElement()
public void setTargetDocument(IDocument targetDocument)
targetDocument
- an empty DOM Documentpublic void setTargetDocument(Document targetDocument)
targetDocument
- an empty DOM Documentpublic IDocument getTargetIDocument()
public Document getTargetDocument()
public void setForceMinOccurs(int forceMinOccurs)
forceMinOccurs
- a signed positive integer or -1 if you do not want to force minOccurspublic int getForceMinOccurs()
public void setForceAttrValues(boolean forceAttrValues)
forceAttrValues
- true to force default element attributes to appearpublic boolean getForceAttrValues()
public void setSchemaLocation(String targetNamespace, String schemaLocation)
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.bea.com/xml/schema" xsi:schemaLocation="http://www.bea.com/xml/schema.xsd"
schemaLocation
- the URL of the schemapublic void setSchemaLocation(String schemaLocation)
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.bea.com/xml/schema"
schemaLocation
- the URL of the schemapublic String getSchemaLocation()
public String getTargetNamespace()
public void setNamespacesEnabled(boolean newValue)
public boolean getNamespacesEnabled()
public void setNamespacePrefix(String prefix)
public String getNamespacePrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |