Constructor and Description |
---|
MetadataResource(java.lang.String resourceURI,
Resource content,
java.util.Map<java.lang.String,GroundedValue<?>> properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Get the media type (MIME type) of the resource if known
|
Item |
getItem(XPathContext context)
Get an XDM Item holding the contents of this resource.
|
java.lang.String |
getResourceURI()
Get a URI that identifies this resource
|
public MetadataResource(java.lang.String resourceURI, Resource content, java.util.Map<java.lang.String,GroundedValue<?>> properties)
public java.lang.String getContentType()
Resource
getContentType
in interface Resource
public java.lang.String getResourceURI()
Resource
getResourceURI
in interface Resource
public Item getItem(XPathContext context)
Resource
getItem
in interface Resource
context
- the XPath evaluation contextCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.