|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xquery.functions.validation.Shared
public class Shared
Shared methods for validation functions.
Field Summary | |
---|---|
static String |
simplereportText
|
static String |
xmlreportText
|
Constructor Summary | |
---|---|
Shared()
|
Method Summary | |
---|---|
static void |
closeInputSource(InputSource source)
Safely close the input source and underlying inputstream. |
static void |
closeStreamSource(StreamSource source)
Safely close the stream source and underlying inputstream. |
static void |
closeStreamSources(StreamSource[] sources)
Safely close the stream sources and underlying inputstreams. |
static InputSource |
getInputSource(Item s,
XQueryContext context)
Get input source for specified resource, containing inputStream and location. |
static InputStream |
getInputStream(Item s,
XQueryContext context)
Get input stream for specified resource. |
static StreamSource |
getStreamSource(InputSource in)
|
static StreamSource |
getStreamSource(Item item,
XQueryContext context)
|
static StreamSource[] |
getStreamSource(Sequence s,
XQueryContext context)
Get stream source for specified resource, containing InputStream and location. |
static String |
getUrl(Item item)
Get URL value of item. |
static String[] |
getUrls(Sequence s)
Get URL values of sequence. |
static NodeImpl |
writeReport(ValidationReport report,
MemTreeBuilder builder)
Create validation report. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String simplereportText
public static final String xmlreportText
Constructor Detail |
---|
public Shared()
Method Detail |
---|
public static InputStream getInputStream(Item s, XQueryContext context) throws XPathException, MalformedURLException, IOException
XPathException
MalformedURLException
IOException
public static StreamSource[] getStreamSource(Sequence s, XQueryContext context) throws XPathException, MalformedURLException, IOException
XPathException
MalformedURLException
IOException
public static StreamSource getStreamSource(Item item, XQueryContext context) throws XPathException, MalformedURLException, IOException
XPathException
MalformedURLException
IOException
public static InputSource getInputSource(Item s, XQueryContext context) throws XPathException, MalformedURLException, IOException
XPathException
MalformedURLException
IOException
public static StreamSource getStreamSource(InputSource in) throws XPathException, MalformedURLException, IOException
XPathException
MalformedURLException
IOException
public static String getUrl(Item item) throws XPathException
XPathException
public static String[] getUrls(Sequence s) throws XPathException
XPathException
public static NodeImpl writeReport(ValidationReport report, MemTreeBuilder builder)
public static void closeInputSource(InputSource source)
public static void closeStreamSource(StreamSource source)
public static void closeStreamSources(StreamSource[] sources)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |