XmpBasicPackage Class

Summary: Represents XMP basic namespace.

Module: aspose.imaging.xmp.schemas.xmpbaseschema

Full Name: aspose.imaging.xmp.schemas.xmpbaseschema.XmpBasicPackage

Inheritance: IXmlValue, XmpPackage

Constructors

NameDescription
XmpBasicPackage()Initializes a new instance of the XmpBasicPackage class.
XmpBasicPackage(prefix, namespace_uri)Initializes a new instance of the XmpBasicPackage class.

Properties

NameTypeAccessDescription
RATING_MAX [static]intrRating max value.
RATING_MIN [static]intrRating min value.
RATING_REJECTED [static]intrRating rejected value.
namespace_uristringrGets the namespace URI.
prefixstringrGets the prefix.
xml_namespacestringrGets the XML namespace.

Methods

NameDescription
add_value(key, value)Adds string property.
clear()Clears this instance.
contains_key(key)Determines whether the specified key contains key.
get_prop_value(key)Gets the object with the specified key.
get_xml_value()Converts XMP value to the XML representation.
remove(key)Remove the value with the specified key.
set_created_date(created_date)Adds resource created date.
set_created_date(created_date)Adds resource created date.
set_created_date_str(created_date)Adds resource created date.
set_creator_tool(creator_tool)Sets the creator tool.
set_identifier(idenfifier)Sets the identifier.
set_label(label)Sets the label.
set_metadata_date(metadata_date)Adds metadata last changed date.
set_metadata_date(metadata_date)Adds metadata last changed date.
set_metadata_date_str(metadata_date)Adds metadata last changed date.
set_modify_date(modified_date)Adds resource last modified date.
set_modify_date(modified_date)Adds resource last modified date.
set_modify_date_str(modified_date)Adds resource last modified date.
set_prop_value(key, value)Gets or sets the object with the specified key.
set_rating(choise)Sets rating.
set_value(key, value)Sets the value.
set_xmp_type_value(key, value)Sets the XMP type value.

Constructor: XmpBasicPackage()

 XmpBasicPackage() 

Initializes a new instance of the XmpBasicPackage class.

Constructor: XmpBasicPackage(prefix, namespace_uri)

 XmpBasicPackage(prefix, namespace_uri) 

Initializes a new instance of the XmpBasicPackage class.

Parameters:

ParameterTypeDescription
prefixstringThe prefix.
namespace_uristringThe namespace URI.

Method: add_value(key, value)

 add_value(key, value) 

Adds string property.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valuestringThe string value.

Method: contains_key(key)

 contains_key(key) 

Determines whether the specified key contains key.

Parameters:

ParameterTypeDescription
keystringThe key to be checked.

Returns

TypeDescription
boolReturns true if the specified key contains key.

Method: get_prop_value(key)

 get_prop_value(key) 

Gets the object with the specified key.

Parameters:

ParameterTypeDescription
keystringThe key that identifies value.

Returns

TypeDescription
objectReturns the object with the specified key.

Method: get_xml_value()

 get_xml_value() 

Converts XMP value to the XML representation.

Returns

TypeDescription
stringReturns the XMP value converted to the XML representation.

Method: remove(key)

 remove(key) 

Remove the value with the specified key.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with removed value.

Returns

TypeDescription
boolReturns true if the value with the specified key was removed.

Method: set_created_date(created_date)

 set_created_date(created_date) 

Adds resource created date.

Parameters:

ParameterTypeDescription
created_datedatetimeCreated date.

Method: set_created_date(created_date)

 set_created_date(created_date) 

Adds resource created date.

Parameters:

ParameterTypeDescription
created_datestringCreated date.

Method: set_created_date_str(created_date)

 set_created_date_str(created_date) 

Adds resource created date.

Parameters:

ParameterTypeDescription
created_datestringCreated date.

Method: set_creator_tool(creator_tool)

 set_creator_tool(creator_tool) 

Sets the creator tool.

Parameters:

ParameterTypeDescription
creator_toolstringName of tool.

Method: set_identifier(idenfifier)

 set_identifier(idenfifier) 

Sets the identifier.

Parameters:

ParameterTypeDescription
idenfifierstringThe idenfifier.

Method: set_label(label)

 set_label(label) 

Sets the label.

Parameters:

ParameterTypeDescription
labelstringThe label.

Method: set_metadata_date(metadata_date)

 set_metadata_date(metadata_date) 

Adds metadata last changed date.

Parameters:

ParameterTypeDescription
metadata_datedatetimeMetadata date.

Method: set_metadata_date(metadata_date)

 set_metadata_date(metadata_date) 

Adds metadata last changed date.

Parameters:

ParameterTypeDescription
metadata_datestringMetadata date.

Method: set_metadata_date_str(metadata_date)

 set_metadata_date_str(metadata_date) 

Adds metadata last changed date.

Parameters:

ParameterTypeDescription
metadata_datestringMetadata date.

Method: set_modify_date(modified_date)

 set_modify_date(modified_date) 

Adds resource last modified date.

Parameters:

ParameterTypeDescription
modified_datedatetimeLast modified date.

Method: set_modify_date(modified_date)

 set_modify_date(modified_date) 

Adds resource last modified date.

Parameters:

ParameterTypeDescription
modified_datestringLast modified date.

Method: set_modify_date_str(modified_date)

 set_modify_date_str(modified_date) 

Adds resource last modified date.

Parameters:

ParameterTypeDescription
modified_datestringLast modified date.

Method: set_prop_value(key, value)

 set_prop_value(key, value) 

Gets or sets the object with the specified key.

Parameters:

ParameterTypeDescription
keystringThe key that identifies value.
valueobjectThe object with the specified key.

Method: set_rating(choise)

 set_rating(choise) 

Sets rating.

Parameters:

ParameterTypeDescription
choiseintFrom -1 till 5

Method: set_value(key, value)

 set_value(key, value) 

Sets the value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with added value.
valueIXmlValueThe value to add to.

Method: set_xmp_type_value(key, value)

 set_xmp_type_value(key, value) 

Sets the XMP type value.

Parameters:

ParameterTypeDescription
keystringThe string representation of key that is identified with set value.
valueXmpTypeBaseThe value to set to.