|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeXmlIndex
public final class SeXmlIndex
Represents an XML index object.
Constructor Summary | |
---|---|
SeXmlIndex(SeConnection conn)
|
|
SeXmlIndex(SeConnection conn,
java.lang.String indexName)
This constructor retrives information about an XML index by name. |
Method Summary | |
---|---|
void |
addTag(SeXmlTag tag)
Adds a tag to this XML index. |
void |
alterTemplate()
This method alters an XML index template, based on the contents of this SeXmlIndex object. |
void |
createTemplate()
This method creates an XML index template based on the contents of this SeXmlIndex object. |
void |
deleteTags()
Removes all tags from an XML index. |
void |
deleteTemplate(java.lang.String indexName)
This method deletes an XML index template. |
void |
generateFromDoc(SeXmlIndex xmlIndex,
SeXmlDoc xmlDoc)
This method generates a best-guess XML index definition or template from a sample document. |
java.lang.String |
getDescription()
Return XML index's description. |
void |
getInfo(java.lang.String indexName)
This constructor retrives information about an XML index by name. |
SeXmlIndex[] |
getInfoList()
This method returns a list of all XML index templates. |
java.lang.String |
getName()
Return XML index's name. |
SeXmlTag[] |
getTagConflicts(SeXmlDoc xmlDoc)
Get conflicting tags in a document. |
SeXmlTag[] |
getTags()
Return XML index's tag/data type list. |
int |
getType()
Return XML index's type. |
void |
setDescription(java.lang.String description)
Sets the XML index's description. |
void |
setName(java.lang.String name)
Sets the XML index's name. |
void |
setType(int indexType)
Sets the XML index type. |
void |
updateTextIndex(java.lang.String table,
java.lang.String column)
Updates the full text index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeXmlIndex(SeConnection conn)
conn
- SDE Connection.public SeXmlIndex(SeConnection conn, java.lang.String indexName) throws SeException
conn
- open SeConnection object.indexName
- Name of index to fetch.
SeException
Method Detail |
---|
public int getType() throws SeException
SeException
public void setType(int indexType) throws SeException
getType()
returns
a value that indicates the type of information in a given SeXmlIndex
object. The value for index type will be one of these values:
SeDefs.SE_XML_INDEX_TEMPLATE
- Index template
SeDefs.SE_XML_INDEX_DEFINITION
- Index definition
SeDefs.SE_XML_INDEX_AUTO
- Index definition with automatic
indexing (default)
indexType
- The type of index.
SeException
public java.lang.String getName() throws SeException
SeException
public void setName(java.lang.String name) throws SeException
SeDefs.SE_MAX_XML_INDEX_NAME_LEN
characters.
name
- The name of the index.
SeException
public java.lang.String getDescription() throws SeException
SeException
public void setDescription(java.lang.String description) throws SeException
description
- The description of the index.
SeException
public SeXmlTag[] getTags() throws SeException
SeException
public void addTag(SeXmlTag tag) throws SeException
tag
-
SeException
public void deleteTags() throws SeException
SeException
public void generateFromDoc(SeXmlIndex xmlIndex, SeXmlDoc xmlDoc) throws SeException
The SeXmlDoc object passed to this function must be valid and contain
text. For example, you can initialize a new SeXmlDoc object with
SeXmlDoc.SeXmlDoc()
and place text into it with SeXmlDoc.setText(java.lang.String)
.
You can build an XML index that is suitable for multiple documents by calling this method multiple times, providing additional example documents. The method is called once for each new document, specifying the same SeXmlIndex object each time. Additions and changes to the index are accumulated in the SeXmlIndex object. With each call, the index description stored in the SeXmlIndex object is updated with any new tags the function finds in the document.
xmlIndex
- XML index template to create.xmlDoc
- XML document.
SeException
public void createTemplate() throws SeException
SeException
public void alterTemplate() throws SeException
SeException
public void deleteTemplate(java.lang.String indexName) throws SeException
indexName
- Name of XML index to delete.
SeException
public void getInfo(java.lang.String indexName) throws SeException
indexName
- Name of the XML index to fetch.
SeException
public SeXmlIndex[] getInfoList() throws SeException
SeException
public void updateTextIndex(java.lang.String table, java.lang.String column) throws SeException
table
- XML column's table name.column
- XML column name.
SeException
public SeXmlTag[] getTagConflicts(SeXmlDoc xmlDoc) throws SeException
xmlDoc
- The list of tags and their data types.
SeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |