Class Resource
java.lang.Object
net.finmath.smartcontract.product.xml.Resource
Describes the resource that contains the media representation of a business
event (i.e used for stating the Publicly Available Information). For example, can describe a file or a
URL that represents the event. This type is an extended version of a type defined by RIXML
(www.rixml.org).
Java class for Resource complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Resource"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="resourceId" type="{http://www.fpml.org/FpML-5/confirmation}ResourceId"/> <element name="resourceType" type="{http://www.fpml.org/FpML-5/confirmation}ResourceType" minOccurs="0"/> <element name="language" type="{http://www.fpml.org/FpML-5/confirmation}Language" minOccurs="0"/> <element name="sizeInBytes" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> <element name="length" type="{http://www.fpml.org/FpML-5/confirmation}ResourceLength" minOccurs="0"/> <element name="mimeType" type="{http://www.fpml.org/FpML-5/confirmation}MimeType"/> <element name="name" type="{http://www.fpml.org/FpML-5/confirmation}NormalizedString" minOccurs="0"/> <element name="comments" type="{http://www.fpml.org/FpML-5/confirmation}String" minOccurs="0"/> <choice minOccurs="0"> <element name="string" type="{http://www.fpml.org/FpML-5/confirmation}String"/> <element name="hexadecimalBinary" type="{http://www.w3.org/2001/XMLSchema}hexBinary"/> <element name="base64Binary" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> <element name="url" type="{http://www.fpml.org/FpML-5/confirmation}NonEmptyURI"/> </choice> </sequence> </restriction> </complexContent> </complexType>
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected String
protected byte[]
protected Language
protected ResourceLength
protected MimeType
protected String
protected ResourceId
protected ResourceType
protected BigDecimal
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the value of the base64Binary property.Gets the value of the comments property.byte[]
Gets the value of the hexadecimalBinary property.Gets the value of the language property.Gets the value of the length property.Gets the value of the mimeType property.getName()
Gets the value of the name property.Gets the value of the resourceId property.Gets the value of the resourceType property.Gets the value of the sizeInBytes property.Gets the value of the string property.getUrl()
Gets the value of the url property.void
setBase64Binary
(byte[] value) Sets the value of the base64Binary property.void
setComments
(String value) Sets the value of the comments property.void
setHexadecimalBinary
(byte[] value) Sets the value of the hexadecimalBinary property.void
setLanguage
(Language value) Sets the value of the language property.void
setLength
(ResourceLength value) Sets the value of the length property.void
setMimeType
(MimeType value) Sets the value of the mimeType property.void
Sets the value of the name property.void
setResourceId
(ResourceId value) Sets the value of the resourceId property.void
setResourceType
(ResourceType value) Sets the value of the resourceType property.void
setSizeInBytes
(BigDecimal value) Sets the value of the sizeInBytes property.void
Sets the value of the string property.void
Sets the value of the url property.
-
Field Details
-
resourceId
-
resourceType
-
language
-
sizeInBytes
-
length
-
mimeType
-
name
-
comments
-
string
-
hexadecimalBinary
protected byte[] hexadecimalBinary -
base64Binary
protected byte[] base64Binary -
url
-
-
Constructor Details
-
Resource
public Resource()
-
-
Method Details
-
getResourceId
Gets the value of the resourceId property.- Returns:
- possible object is
ResourceId
-
setResourceId
Sets the value of the resourceId property.- Parameters:
value
- allowed object isResourceId
-
getResourceType
Gets the value of the resourceType property.- Returns:
- possible object is
ResourceType
-
setResourceType
Sets the value of the resourceType property.- Parameters:
value
- allowed object isResourceType
-
getLanguage
-
setLanguage
-
getSizeInBytes
Gets the value of the sizeInBytes property.- Returns:
- possible object is
BigDecimal
-
setSizeInBytes
Sets the value of the sizeInBytes property.- Parameters:
value
- allowed object isBigDecimal
-
getLength
Gets the value of the length property.- Returns:
- possible object is
ResourceLength
-
setLength
Sets the value of the length property.- Parameters:
value
- allowed object isResourceLength
-
getMimeType
-
setMimeType
-
getName
-
setName
-
getComments
-
setComments
-
getString
-
setString
-
getHexadecimalBinary
public byte[] getHexadecimalBinary()Gets the value of the hexadecimalBinary property.- Returns:
- possible object is
String
-
setHexadecimalBinary
public void setHexadecimalBinary(byte[] value) Sets the value of the hexadecimalBinary property.- Parameters:
value
- allowed object isString
-
getBase64Binary
public byte[] getBase64Binary()Gets the value of the base64Binary property.- Returns:
- possible object is byte[]
-
setBase64Binary
public void setBase64Binary(byte[] value) Sets the value of the base64Binary property.- Parameters:
value
- allowed object is byte[]
-
getUrl
-
setUrl
-