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
FieldsModifier and TypeFieldDescriptionprotected byte[]protected Stringprotected byte[]protected Languageprotected ResourceLengthprotected MimeTypeprotected Stringprotected ResourceIdprotected ResourceTypeprotected BigDecimalprotected Stringprotected String -
Constructor Summary
Constructors -
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.voidsetBase64Binary(byte[] value) Sets the value of the base64Binary property.voidsetComments(String value) Sets the value of the comments property.voidsetHexadecimalBinary(byte[] value) Sets the value of the hexadecimalBinary property.voidsetLanguage(Language value) Sets the value of the language property.voidsetLength(ResourceLength value) Sets the value of the length property.voidsetMimeType(MimeType value) Sets the value of the mimeType property.voidSets the value of the name property.voidsetResourceId(ResourceId value) Sets the value of the resourceId property.voidsetResourceType(ResourceType value) Sets the value of the resourceType property.voidsetSizeInBytes(BigDecimal value) Sets the value of the sizeInBytes property.voidSets the value of the string property.voidSets 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
-