Package iofXml.v3
Class Image
java.lang.Object
iofXml.v3.Image
Defines an image file, either as a link (use the url attribute) or as base64-encoded binary data.
Java class for Image complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Image">
<simpleContent>
<extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
<attribute name="url" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="mediaType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="width" type="{http://www.w3.org/2001/XMLSchema}integer" />
<attribute name="height" type="{http://www.w3.org/2001/XMLSchema}integer" />
<attribute name="resolution" type="{http://www.w3.org/2001/XMLSchema}double" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigIntegerThe height of the image in pixels.protected StringThe type of the image file, e.g.protected DoubleThe resolution of the image in dpi.protected StringThe url to the image if it is stored externally (i.e.protected byte[]protected BigIntegerThe width of the image in pixels. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe height of the image in pixels.The type of the image file, e.g.The resolution of the image in dpi.getUrl()The url to the image if it is stored externally (i.e.byte[]getValue()Gets the value of the value property.getWidth()The width of the image in pixels.voidsetHeight(BigInteger value) Sets the value of the height property.voidsetMediaType(String value) Sets the value of the mediaType property.voidsetResolution(Double value) Sets the value of the resolution property.voidSets the value of the url property.voidsetValue(byte[] value) Sets the value of the value property.voidsetWidth(BigInteger value) Sets the value of the width property.
-
Field Details
-
value
protected byte[] value -
url
The url to the image if it is stored externally (i.e. not as base64-encoded binary data). -
mediaType
The type of the image file, e.g. image/jpeg. Refer to https://www.iana.org/assignments/media-types/media-types.xhtml#image for available media types. -
width
The width of the image in pixels. -
height
The height of the image in pixels. -
resolution
The resolution of the image in dpi.
-
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
getValue
public byte[] getValue()Gets the value of the value property.- Returns:
- possible object is byte[]
-
setValue
public void setValue(byte[] value) Sets the value of the value property.- Parameters:
value- allowed object is byte[]
-
getUrl
The url to the image if it is stored externally (i.e. not as base64-encoded binary data).- Returns:
- possible object is
String
-
setUrl
Sets the value of the url property. -
getMediaType
The type of the image file, e.g. image/jpeg. Refer to https://www.iana.org/assignments/media-types/media-types.xhtml#image for available media types.- Returns:
- possible object is
String
-
setMediaType
Sets the value of the mediaType property.- Parameters:
value- allowed object isString- See Also:
-
getWidth
The width of the image in pixels.- Returns:
- possible object is
BigInteger
-
setWidth
Sets the value of the width property.- Parameters:
value- allowed object isBigInteger- See Also:
-
getHeight
The height of the image in pixels.- Returns:
- possible object is
BigInteger
-
setHeight
Sets the value of the height property.- Parameters:
value- allowed object isBigInteger- See Also:
-
getResolution
The resolution of the image in dpi.- Returns:
- possible object is
Double
-
setResolution
Sets the value of the resolution property.- Parameters:
value- allowed object isDouble- See Also:
-