org.scribble.common.resource
Interface Content

All Known Implementing Classes:
ByteArrayContent, FileContent, ResourceContent

public interface Content

This interface represents content to be used by the Scribble tools.


Method Summary
 InputStream getInputStream()
          This method returns the input stream for accessing the content.
 String getName()
          This method returns the content name if available.
 boolean hasExtension(String ext)
          This method determines whether the content has an extension of the specified type.
 boolean isXSDElement(QName xsdElem)
          This method determines whether the content is an XSD element of the value specified.
 boolean isXSDType(QName xsdType)
          This method determines whether the content is an XSD type of the value specified.
 

Method Detail

getName

String getName()
This method returns the content name if available.

Returns:
The optional content name

getInputStream

InputStream getInputStream()
                           throws IOException
This method returns the input stream for accessing the content.

Returns:
The input stream
Throws:
IOException - Failed to get input stream

hasExtension

boolean hasExtension(String ext)
This method determines whether the content has an extension of the specified type.

Parameters:
ext - The extension
Returns:
Whether the content has the specified extension

isXSDType

boolean isXSDType(QName xsdType)
This method determines whether the content is an XSD type of the value specified.

Parameters:
xsdType - The XSD type name
Returns:
Whether the content is an XSD type of the specified name

isXSDElement

boolean isXSDElement(QName xsdElem)
This method determines whether the content is an XSD element of the value specified.

Parameters:
xsdElem - The XSD element name
Returns:
Whether the content is an XSD element of the specified name


Copyright © 2008-Present Scribble.org. All Rights Reserved.