|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.crawler.NCMLBuilder
public class NCMLBuilder
This class handles the task of getting an NCML given a DDX document. It can test the returned document to see if it is well-formed and it can cache the document. This is based on the DDX to NCML builder but, unlike that code, this only handles the case where many DDX documents comprise a single dataset.
Constructor Summary | |
---|---|
NCMLBuilder(java.lang.String namePrefix)
|
|
NCMLBuilder(java.lang.String namePrefix,
java.lang.String xslt)
|
Method Summary | |
---|---|
java.lang.String |
getCachedNCMLDoc(java.lang.String DDXURL)
Return the NCML document generated using the DDX from the given DDX URL. |
java.lang.String |
getNCML(java.lang.String ddxUrl,
java.lang.String ddxString)
Build and cache an NCML document using the given DDX document. |
java.lang.String |
getNCML(java.lang.String ddxUrl,
java.lang.String ddxString,
java.lang.String[] params)
This version takes a varying number of parameters. |
boolean |
isWellFormedNCML(java.lang.String ncmlString)
Simple method to test if the NCML will parse. |
void |
saveNCMLCache()
Save the NCML cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NCMLBuilder(java.lang.String namePrefix) throws java.lang.Exception
java.lang.Exception
public NCMLBuilder(java.lang.String namePrefix, java.lang.String xslt) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean isWellFormedNCML(java.lang.String ncmlString)
ddxString
- The NCML to test
public java.lang.String getNCML(java.lang.String ddxUrl, java.lang.String ddxString) throws java.lang.Exception
ddxUrl
- Use this as the key when caching the NCMLddxString
- Build NCML from this document
java.lang.Exception
public java.lang.String getNCML(java.lang.String ddxUrl, java.lang.String ddxString, java.lang.String[] params) throws java.lang.Exception
ddxUrl
- Use this as the key when caching the NCMLddxString
- Build NCML from this documentparams
- Array element pairs: name1, value1, name2, value2, ...
java.lang.Exception
public java.lang.String getCachedNCMLDoc(java.lang.String DDXURL) throws java.lang.Exception
DDXURL
- The DDX URL is the key used to reference the NCML document.
java.lang.Exception
- Thrown if caching is not on.public void saveNCMLCache() throws java.lang.Exception
java.lang.Exception
- Thrown if caching is not on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |