|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.xml.XMLFilter
Provides static methods to filter XML
Method Summary | |
static void |
filterDocumentsByMimeTypes(org.w3c.dom.Document doc,
java.lang.String[] mimeTypes)
Removes documents that are not of the specified mime types from the objectset. |
static org.w3c.dom.Document |
filterFoldersByClassId(org.w3c.dom.Document docFolders,
java.lang.String classId)
Exclude any folder its class id is not the same as classId. |
static void |
removeDocumentsByClassId(org.w3c.dom.Document doc,
java.lang.String classId)
Removes documents from XML with the specified class id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static org.w3c.dom.Document filterFoldersByClassId(org.w3c.dom.Document docFolders, java.lang.String classId) throws java.lang.Exception
docFolders
- Input folders DOM objectclassId
- class id of folder
java.lang.Exception
public static void removeDocumentsByClassId(org.w3c.dom.Document doc, java.lang.String classId) throws java.lang.Exception
doc
- classId
-
java.lang.Exception
public static void filterDocumentsByMimeTypes(org.w3c.dom.Document doc, java.lang.String[] mimeTypes) throws java.lang.Exception
doc
- DOM Document objectmimeTypes
- String array of mimeTypes to be removed
java.lang.Exception
- if some unexpected XPath error occurs, usually does not happen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |