Package net.sf.saxon.resource
Class MetadataResource
- java.lang.Object
- 
- net.sf.saxon.resource.MetadataResource
 
- 
- 
Constructor SummaryConstructors Constructor Description MetadataResource(java.lang.String resourceURI, Resource content, java.util.Map<java.lang.String,GroundedValue> properties, XPathContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContentType()Get the media type (MIME type) of the resource if knownItemgetItem()Get an XDM Item holding the contents of this resource.java.lang.StringgetResourceURI()Get a URI that identifies this resource
 
- 
- 
- 
Constructor Detail- 
MetadataResourcepublic MetadataResource(java.lang.String resourceURI, Resource content, java.util.Map<java.lang.String,GroundedValue> properties, XPathContext context)
 
- 
 - 
Method Detail- 
getContentTypepublic java.lang.String getContentType() Description copied from interface:ResourceGet the media type (MIME type) of the resource if known- Specified by:
- getContentTypein interface- Resource
- Returns:
- the media type if known; otherwise null
 
 - 
getResourceURIpublic java.lang.String getResourceURI() Description copied from interface:ResourceGet a URI that identifies this resource- Specified by:
- getResourceURIin interface- Resource
- Returns:
- a URI identifying this resource
 
 - 
getItempublic Item getItem() Description copied from interface:ResourceGet an XDM Item holding the contents of this resource.- Specified by:
- getItemin interface- Resource
- Returns:
- an item holding the contents of the resource. The type of item will reflect the type of the resource: a document node for XML resources, a string for text resources, a map or array for JSON resources, a base64Binary value for binary resource. May also return null if the resource cannot be materialized and this is not to be treated as an error.
 
 
- 
 
-