|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.mwi.mobileok.basic.DecodedContent org.w3c.mwi.mobileok.basic.ImageContent org.w3c.mwi.mobileok.basic.NotSupportedImageContent
public class NotSupportedImageContent
Represents a image/jpeg
image resource.
Field Summary | |
---|---|
private java.lang.String |
imageType
Content-type of the image. |
Constructor Summary | |
---|---|
NotSupportedImageContent(java.net.URI uri,
java.util.List<RetrievalElement> retrieved)
Creates a class instance bound to a URI. |
Method Summary | |
---|---|
java.util.List<ValidationByteMessage> |
getImageErrorMessageList()
Returns the list of image format validation error messages. |
int |
getImageHeight()
Returns the height of the image. |
java.lang.String |
getImageType()
Returns the image content-type. |
int |
getImageWidth()
Returns the width of the image. |
boolean |
hasTransparency()
Returns true when the image uses transparency. |
boolean |
isValid()
Returns true when the content could be successfully
decoded. |
org.w3c.dom.Node |
toMokiNode(org.w3c.dom.Document document,
org.w3c.dom.Node parent)
Serializes the content to its moki representation as a DOM node. |
Methods inherited from class org.w3c.mwi.mobileok.basic.DecodedContent |
---|
addByteErrorMessages, addLineAndColumnMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String imageType
Constructor Detail |
---|
public NotSupportedImageContent(java.net.URI uri, java.util.List<RetrievalElement> retrieved) throws TestException
The content is validated while it is instantiated.
uri
- absolute URI of the resource.retrieved
- the retrieved representation of the resource.
TestException
- an unexpected error occurred while retrieving the resource.Method Detail |
---|
public int getImageHeight()
ImageContent
getImageHeight
in class ImageContent
public int getImageWidth()
ImageContent
getImageWidth
in class ImageContent
public boolean hasTransparency()
ImageContent
true
when the image uses transparency.
Support for transparency may depend on the image format.
A false
may thus also mean that transparency simply cannot
be used.
hasTransparency
in class ImageContent
true
when the image uses transparency,
false
otherwise.public boolean isValid()
DecodedContent
true
when the content could be successfully
decoded.
isValid
in class DecodedContent
true
when the content is valid,
false
otherwise.public java.util.List<ValidationByteMessage> getImageErrorMessageList()
ImageContent
getImageErrorMessageList
in class ImageContent
public java.lang.String getImageType()
ImageContent
getImageType
in class ImageContent
public org.w3c.dom.Node toMokiNode(org.w3c.dom.Document document, org.w3c.dom.Node parent)
DecodedContent
toMokiNode
in class ImageContent
document
- DOM document the created node should belong toparent
- DOM node to which the representation should be appended.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |