|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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. |
SOMElement |
getRootElement()
Get the SOMElement that will act as the root element for the new document. |
java.lang.String |
getRootName()
the name of the root element set by setRootName |
java.lang.String |
getSchemaLocation()
|
org.w3c.dom.Document |
getTargetDocument()
the document. |
IDocument |
getTargetIDocument()
the document. |
java.lang.String |
getTargetNamespace()
|
void |
setForceAttrValues(boolean forceAttrValues)
Force Element attributes. |
void |
setForceMinOccurs(int forceMinOccurs)
Force minimum occurs (minOccurs). |
void |
setRootElement(SOMElement rootElem)
Specify a SOMElement that will act as the root element for the new document. |
void |
setRootName(java.lang.String rootName)
specify the name of the element from the schema to be used as the root element for the new document. |
void |
setSchemaLocation(java.lang.String schemaLocation)
set xsi document attribute. |
void |
setSchemaLocation(java.lang.String targetNamespace,
java.lang.String schemaLocation)
set xsi document attribute. |
void |
setTargetDocument(org.w3c.dom.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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultDocumentOptions()
Method Detail |
public void setRootName(java.lang.String rootName)
rootName
- the name of an element in the root of the SOMSchemapublic java.lang.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(org.w3c.dom.Document targetDocument)
targetDocument
- an empty DOM Documentpublic IDocument getTargetIDocument()
public org.w3c.dom.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(java.lang.String targetNamespace, java.lang.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(java.lang.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 java.lang.String getSchemaLocation()
public java.lang.String getTargetNamespace()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |