|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.marklogic.xdmp.XDMPDocOptions
Describes the creation options to apply when loading a document into the contentbase.
XDMPConnection.openDocInsertStream(String, XDMPDocOptions)| Field Summary | |
static int |
XDMP_DOC_FORMAT_BINARY
Insert document as binary() format. |
static int |
XDMP_DOC_FORMAT_NONE
No declared document format, use server default. |
static int |
XDMP_DOC_FORMAT_TEXT
Insert document as text() format. |
static int |
XDMP_DOC_FORMAT_XML
Insert document as XML. |
static int |
XDMP_ERROR_CORRECTION_FULL
Document insert error correction level: indicates that the server attempts to insert missing tags and ignore extraneous tags if necessary to make the loaded document be well-formed. |
static int |
XDMP_ERROR_CORRECTION_NONE
Document insert error correction level: indicates that an error is signaled by the server if a non-well-formed document is loaded. |
| Constructor Summary | |
XDMPDocOptions()
|
|
XDMPDocOptions(Locale locale)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys,
int format)
|
|
XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys,
int format,
String language)
|
|
| Method Summary | |
String[] |
getCollections()
Get the list of collections to which a document should be added when it's loaded. |
int |
getFormat()
Get the document format to apply to a loaded document. |
String |
getLanguage()
Get the language to apply when a document is loaded. |
Locale |
getLocale()
Get the Locale to associate with the loaded document. |
String |
getNamespace()
Get the namespace that should apply to a document when it's loaded. |
XDMPPermission[] |
getPermissions()
Get the list of permissions to be applied to the document when it is loaded. |
String[] |
getPlaceKeys()
Get the list of forest placement keys. |
int |
getQuality()
Get the quality setting to apply to a document when it's loaded. |
int |
getRepair()
Get the document repair level setting. |
boolean |
getResolveEntities()
Get the Resolve Entities On Load setting. |
void |
setCollections(String[] collections)
Set the list of collections to which a document should be added when loaded. |
void |
setFormat(int format)
Set the document format to apply when a document is loaded into the contentbase. |
void |
setLanguage(String language)
Get the language to apply when a document is loaded. |
void |
setLocale(Locale locale)
Set the Locale to associate with the loaded document. |
void |
setNamespace(String namespace)
Set the namespace to apply to a document when it's loaded. |
void |
setPermissions(XDMPPermission[] permissions)
Set the list of permissions to apply to a document when loaded. |
void |
setPlaceKeys(String[] placeKeys)
Set the list of forest keys to indicate which data forest may be used to store a loaded document. |
void |
setQuality(int quality)
Set the quality value that should be applied to a docuemnt when it's loaded. |
void |
setRepair(int repair)
Set the document repair level the server should apply to a document when it's loaded. |
void |
setResolveEntities(boolean resolveEntities)
Specify whether entity references should be resolved (inserted into the document in place of the reference) or not (leave the entity reference in the document). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int XDMP_ERROR_CORRECTION_NONE
public static final int XDMP_ERROR_CORRECTION_FULL
public static final int XDMP_DOC_FORMAT_NONE
public static final int XDMP_DOC_FORMAT_BINARY
public static final int XDMP_DOC_FORMAT_TEXT
public static final int XDMP_DOC_FORMAT_XML
| Constructor Detail |
public XDMPDocOptions()
public XDMPDocOptions(Locale locale)
public XDMPDocOptions(Locale locale,
boolean resolveEntities)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys,
int format)
public XDMPDocOptions(Locale locale,
boolean resolveEntities,
XDMPPermission[] permissions,
String[] collections,
int quality,
String namespace,
int repair,
String[] placeKeys,
int format,
String language)
| Method Detail |
public Locale getLocale()
public void setLocale(Locale locale)
locale - A Locale object.public boolean getResolveEntities()
public void setResolveEntities(boolean resolveEntities)
resolveEntities - True if entities should be resolved, false if not.public XDMPPermission[] getPermissions()
XDMPPermission objects.public void setPermissions(XDMPPermission[] permissions)
permissions - An array of XDMPPermission objects.public String[] getCollections()
public void setCollections(String[] collections)
collections - An array of colleciton names.public int getQuality()
public void setQuality(int quality)
quality - An integer quality value.public String getNamespace()
public void setNamespace(String namespace)
namespace - A namespace as a String.public int getRepair()
XDMP_ERROR_CORRECTION_FULL or XDMP_ERROR_CORRECTION_NONE.public void setRepair(int repair)
repair - XDMP_ERROR_CORRECTION_FULL or XDMP_ERROR_CORRECTION_NONE.public String[] getPlaceKeys()
public void setPlaceKeys(String[] placeKeys)
placeKeys - A list of forest keys, as Strings, specifying the
allowed forests.public int getFormat()
XDMP_DOC_FORMAT_XML, XDMP_DOC_FORMAT_TEXT,
XDMP_DOC_FORMAT_BINARY or XDMP_DOC_FORMAT_NONE.public void setFormat(int format)
format - One of XDMP_DOC_FORMAT_XML, XDMP_DOC_FORMAT_TEXT,
XDMP_DOC_FORMAT_BINARY or XDMP_DOC_FORMAT_NONE.public String getLanguage()
public void setLanguage(String language)
language - The language as a String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||