public class LibraryComPADRE
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ABOUT_OSP |
|
static java.lang.String |
desiredOSPType |
|
static java.lang.String |
EJS_COLLECTION_NAME |
|
static java.lang.String |
EJS_INFO_URL |
|
static java.lang.String |
EJS_SERVER_RECORDS |
|
static java.lang.String |
EJS_SERVER_TREE |
|
static java.lang.String |
GENERIC_COLLECTION_NAME |
|
static java.lang.String |
HOST |
|
static java.lang.String |
OSP_INFO_URL |
|
static java.lang.String |
PRIMARY_ONLY |
|
static java.lang.String |
TRACKER_COLLECTION_NAME |
|
static java.lang.String |
TRACKER_INFO_URL |
|
static java.lang.String |
TRACKER_SERVER_RECORDS |
|
static java.lang.String |
TRACKER_SERVER_TREE |
| Constructor | Description |
|---|---|
LibraryComPADRE() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static java.util.List<org.w3c.dom.Node> |
getAllChildren(org.w3c.dom.Node parent,
java.lang.String name) |
Returns all child nodes with the given name.
|
protected static java.lang.String[] |
getAttachment(org.w3c.dom.Node node,
java.lang.String attachmentType) |
Returns data for a downloadable DOM Node attachment.
|
protected static java.lang.String |
getChildValue(org.w3c.dom.Node parent,
java.lang.String name) |
Gets the value of the first child node with a given name.
|
protected static LibraryCollection |
getCollection(java.lang.String path) |
Returns the LibraryCollection for a given ComPADRE path (query).
|
static java.lang.String |
getCollectionName(java.lang.String path) |
Returns a descriptive name for a given ComPADRE path (query).
|
protected static java.lang.String |
getCollectionPath(java.lang.String path,
boolean primarySubjectOnly) |
Returns the collection path for an EJS or tracker tree.
|
protected static org.w3c.dom.Node |
getFirstChild(org.w3c.dom.Node parent,
java.lang.String name) |
Returns the first child node with the given name.
|
protected static java.lang.String |
getNodeValue(org.w3c.dom.Node node) |
Gets the value of a Node.
|
protected static boolean |
isComPADREPath(java.lang.String path) |
Determines if a path is a valid ComPADRE query.
|
protected static boolean |
isDesiredOSPType(org.w3c.dom.Node node) |
Determines if a node has an
|
protected static boolean |
isPrimarySubjectOnly(java.lang.String path) |
Determines if a query path limits results to the primary subject only.
|
protected static boolean |
load(LibraryCollection collection,
java.lang.String query) |
Loads a collection using a specified comPADRE search query.
|
protected static boolean |
loadResource(LibraryResource record,
org.w3c.dom.Node node,
java.lang.String[] attachment,
LibraryTreeNode treeNode) |
Reloads a ComPADRE record into a LibraryTreeNode.
|
protected static boolean |
loadResources(LibraryTreeNode treeNode) |
Loads ComPADRE records into a LibraryTreeNode collection.
|
protected static boolean |
loadSubtrees(LibraryCollection collection,
org.w3c.dom.NodeList nodeList,
java.lang.String attributeType,
java.lang.String serviceParameter) |
Loads a collection with subtree collections that meet the specified requirements.
|
protected static java.lang.String |
processURL(java.lang.String url) |
Replaces "&" with "&" in HTML code.
|
protected static boolean |
reloadResource(LibraryTreeNode treeNode,
java.lang.String urlPath) |
Reloads a ComPADRE record into a LibraryTreeNode.
|
protected static java.lang.String |
writeXmlFile(org.w3c.dom.Document doc,
java.lang.String filename) |
Writes a DOM document to a file for testing.
|
public static final java.lang.String OSP_INFO_URL
public static final java.lang.String EJS_SERVER_TREE
public static final java.lang.String EJS_SERVER_RECORDS
public static final java.lang.String EJS_COLLECTION_NAME
public static final java.lang.String EJS_INFO_URL
public static final java.lang.String TRACKER_SERVER_TREE
public static final java.lang.String TRACKER_SERVER_RECORDS
public static final java.lang.String TRACKER_COLLECTION_NAME
public static final java.lang.String TRACKER_INFO_URL
public static final java.lang.String PRIMARY_ONLY
public static final java.lang.String GENERIC_COLLECTION_NAME
public static final java.lang.String ABOUT_OSP
public static final java.lang.String HOST
public static java.lang.String desiredOSPType
protected static boolean load(LibraryCollection collection, java.lang.String query)
collection - the LibraryCollection to loadquery - the search queryprotected static boolean loadSubtrees(LibraryCollection collection, org.w3c.dom.NodeList nodeList, java.lang.String attributeType, java.lang.String serviceParameter)
collection - the LibraryCollection to loadnodeList - a list of NodesattributeType - the desired attributeserviceParameter - the desired service parameterprotected static boolean loadResources(LibraryTreeNode treeNode)
treeNode - the LibraryTreeNode to load--note record MUST be a collectionprotected static boolean reloadResource(LibraryTreeNode treeNode, java.lang.String urlPath)
treeNode - the LibraryTreeNode to reloadprotected static boolean loadResource(LibraryResource record, org.w3c.dom.Node node, java.lang.String[] attachment, LibraryTreeNode treeNode)
treeNode - the LibraryTreeNode to reloadprotected static java.lang.String[] getAttachment(org.w3c.dom.Node node,
java.lang.String attachmentType)
node - the DOM NodeattachmentType - the attachment typeprotected static org.w3c.dom.Node getFirstChild(org.w3c.dom.Node parent,
java.lang.String name)
parent - the parent Nodename - the child nameprotected static java.util.List<org.w3c.dom.Node> getAllChildren(org.w3c.dom.Node parent,
java.lang.String name)
parent - the parent Nodename - the nameprotected static java.lang.String getNodeValue(org.w3c.dom.Node node)
node - the Nodeprotected static java.lang.String getChildValue(org.w3c.dom.Node parent,
java.lang.String name)
parent - the parent Nodename - the name of the childprotected static java.lang.String processURL(java.lang.String url)
url - the HTML codeprotected static java.lang.String writeXmlFile(org.w3c.dom.Document doc,
java.lang.String filename)
doc - the Documentfilename - the filename to write topublic static java.lang.String getCollectionName(java.lang.String path)
path - the query stringprotected static LibraryCollection getCollection(java.lang.String path)
path - the query stringprotected static java.lang.String getCollectionPath(java.lang.String path,
boolean primarySubjectOnly)
path - the ComPADRE query stringprimarySubjectOnly - true to limit results to their primary subjectprotected static boolean isComPADREPath(java.lang.String path)
path - the pathprotected static boolean isPrimarySubjectOnly(java.lang.String path)
path - the pathprotected static boolean isDesiredOSPType(org.w3c.dom.Node node)
node - the node