Represents XMP field. More...

Inherits System::Object.

Public Member Functions

System::String get_Prefix () const
 Gets the prefix. More...
 
void set_Prefix (System::String value)
 Gets the prefix. More...
 
System::String get_NamespaceUri () const
 Gets the namespace URI. More...
 
void set_NamespaceUri (System::String value)
 Gets the namespace URI. More...
 
System::String get_LocalName () const
 Gets the name of the local. More...
 
void set_LocalName (System::String value)
 Sets the name of the local. More...
 
System::String get_Name () const
 Gets the name. More...
 
System::SharedPtr< XmpValueget_Value ()
 Gets the value. More...
 
XmpFieldType get_FieldType ()
 Gets the type of the field. More...
 
bool get_IsEmpty ()
 Gets a value indicating whether this instance is empty. More...
 
virtual bool Equals (System::SharedPtr< System::Object > obj)
 Indicates whether this instance and a specified object are equal. More...
 
virtual int32_t GetHashCode () const
 Returns a hash code for this instance. More...
 
System::ArrayPtr< System::SharedPtr< XmpField > > ToStructure ()
 Gets value as a structure More...
 
System::ArrayPtr< System::SharedPtr< XmpValue > > ToArray ()
 Gets value as an array. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Static Public Member Functions

static System::SharedPtr< XmpFieldget_Empty ()
 Gets an Empty xmp field. More...
 
static System::SharedPtr< XmpFieldget_Lang ()
 Gets xml:lang qualifier. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Protected Member Functions

 XmpField (System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< System::Object > value)
 Initializes a new instance of the XmpField struct. More...
 
 XmpField (System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< XmpValue > value)
 Initializes a new instance of the XmpField struct. More...
 
 XmpField (System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpField >> fields)
 Initializes a new instance of the XmpField struct. More...
 
 XmpField (System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpValue >> value)
 Initializes a new instance of the XmpField struct. More...
 
 XmpField (System::SharedPtr< XmpField > baseField, System::SharedPtr< XmpValue > value)
 Initializes a new instance of the XmpField struct. More...
 
 XmpField (System::SharedPtr< XmpField > baseField, System::SharedPtr< System::Object > value)
 Initializes a new instance of the XmpField struct. More...
 
void SetValue (System::SharedPtr< XmpValue > value)
 Sets value of XMP field. More...
 

Friends

ASPOSE_PDF_SHARED_API bool operator== (System::SharedPtr< XmpField > const &field1, System::SharedPtr< XmpField > const &field2)
 
ASPOSE_PDF_SHARED_API bool operator!= (System::SharedPtr< XmpField > const &field1, System::SharedPtr< XmpField > const &field2)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Detailed Description

Represents XMP field.

Constructor & Destructor Documentation

◆ XmpField() [1/6]

Aspose::Pdf::XmpField::XmpField ( System::String  prefix,
System::String  name,
System::String  namespaceUri,
System::SharedPtr< System::Object value 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
prefixThe prefix.
nameThe name.
namespaceUriThe namespace URI.
valueThe value.

◆ XmpField() [2/6]

Aspose::Pdf::XmpField::XmpField ( System::String  prefix,
System::String  name,
System::String  namespaceUri,
System::SharedPtr< XmpValue value 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
prefixThe prefix.
nameThe name.
namespaceUriThe namespace URI.
valueThe value.

◆ XmpField() [3/6]

Aspose::Pdf::XmpField::XmpField ( System::String  prefix,
System::String  name,
System::String  namespaceUri,
System::ArrayPtr< System::SharedPtr< XmpField >>  fields 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
prefixThe prefix.
nameThe name.
namespaceUriThe namespace URI.
fieldsThe value.

◆ XmpField() [4/6]

Aspose::Pdf::XmpField::XmpField ( System::String  prefix,
System::String  name,
System::String  namespaceUri,
System::ArrayPtr< System::SharedPtr< XmpValue >>  value 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
prefixThe prefix.
nameThe name.
namespaceUriThe namespace URI.
valueThe value.

◆ XmpField() [5/6]

Aspose::Pdf::XmpField::XmpField ( System::SharedPtr< XmpField baseField,
System::SharedPtr< XmpValue value 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
baseFieldThe base field.
valueThe value.

◆ XmpField() [6/6]

Aspose::Pdf::XmpField::XmpField ( System::SharedPtr< XmpField baseField,
System::SharedPtr< System::Object value 
)
protected

Initializes a new instance of the XmpField struct.

Parameters
baseFieldThe base field.
valueThe value.

Member Function Documentation

◆ Equals()

virtual bool Aspose::Pdf::XmpField::Equals ( System::SharedPtr< System::Object obj)
virtual

Indicates whether this instance and a specified object are equal.

Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.
Parameters
objAnother object to compare to.

<filterpriority>2</filterpriority>

◆ get_Empty()

static System::SharedPtr<XmpField> Aspose::Pdf::XmpField::get_Empty ( )
static

Gets an Empty xmp field.

◆ get_FieldType()

XmpFieldType Aspose::Pdf::XmpField::get_FieldType ( )

Gets the type of the field.

The type of the field.

◆ get_IsEmpty()

bool Aspose::Pdf::XmpField::get_IsEmpty ( )

Gets a value indicating whether this instance is empty.

true if this instance is empty; otherwise, false.

◆ get_Lang()

static System::SharedPtr<XmpField> Aspose::Pdf::XmpField::get_Lang ( )
static

Gets xml:lang qualifier.

◆ get_LocalName()

System::String Aspose::Pdf::XmpField::get_LocalName ( ) const

Gets the name of the local.

The name of the local.

◆ get_Name()

System::String Aspose::Pdf::XmpField::get_Name ( ) const

Gets the name.

The name.

◆ get_NamespaceUri()

System::String Aspose::Pdf::XmpField::get_NamespaceUri ( ) const

Gets the namespace URI.

The namespace URI.

◆ get_Prefix()

System::String Aspose::Pdf::XmpField::get_Prefix ( ) const

Gets the prefix.

The prefix.

◆ get_Value()

System::SharedPtr<XmpValue> Aspose::Pdf::XmpField::get_Value ( )

Gets the value.

The value.

◆ GetHashCode()

virtual int32_t Aspose::Pdf::XmpField::GetHashCode ( ) const
virtual

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Reimplemented from System::Object.

◆ set_LocalName()

void Aspose::Pdf::XmpField::set_LocalName ( System::String  value)

Sets the name of the local.

The name of the local.

◆ set_NamespaceUri()

void Aspose::Pdf::XmpField::set_NamespaceUri ( System::String  value)

Gets the namespace URI.

The namespace URI.

◆ set_Prefix()

void Aspose::Pdf::XmpField::set_Prefix ( System::String  value)

Gets the prefix.

The prefix.

◆ SetValue()

void Aspose::Pdf::XmpField::SetValue ( System::SharedPtr< XmpValue value)
protected

Sets value of XMP field.

Parameters
value

◆ ToArray()

System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Pdf::XmpField::ToArray ( )

Gets value as an array.

Returns

◆ ToStructure()

System::ArrayPtr<System::SharedPtr<XmpField> > Aspose::Pdf::XmpField::ToStructure ( )

Gets value as a structure

Returns

Friends And Related Function Documentation

◆ operator!=

ASPOSE_PDF_SHARED_API bool operator!= ( System::SharedPtr< XmpField > const &  field1,
System::SharedPtr< XmpField > const &  field2 
)
friend

◆ operator==

ASPOSE_PDF_SHARED_API bool operator== ( System::SharedPtr< XmpField > const &  field1,
System::SharedPtr< XmpField > const &  field2 
)
friend