Represents XMP field. More...

Inherits System::Object.

Public Member Functions

ASPOSE_PAGE_SHARED_API System::String get_Prefix () const
 Gets the prefix. More...
 
ASPOSE_PAGE_SHARED_API void set_Prefix (System::String value)
 Gets the prefix. More...
 
ASPOSE_PAGE_SHARED_API System::String get_NamespaceUri () const
 Gets the namespace URI. More...
 
ASPOSE_PAGE_SHARED_API void set_NamespaceUri (System::String value)
 Gets the namespace URI. More...
 
ASPOSE_PAGE_SHARED_API System::String get_LocalName () const
 Gets the name of the local. More...
 
ASPOSE_PAGE_SHARED_API void set_LocalName (System::String value)
 Sets the name of the local. More...
 
ASPOSE_PAGE_SHARED_API System::String get_Name () const
 Gets the name. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpValueget_Value () const
 Gets the value. More...
 
ASPOSE_PAGE_SHARED_API XmpFieldType get_FieldType ()
 Gets the type of the field. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsEmpty ()
 Gets a value indicating whether this instance is empty. More...
 
ASPOSE_PAGE_SHARED_API bool Equals (System::SharedPtr< System::Object > obj) override
 Indicates whether this instance and a specified object are equal. More...
 
ASPOSE_PAGE_SHARED_API int32_t GetHashCode () const override
 Returns a hash code for this instance. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::SharedPtr< XmpField > > ToStructure ()
 Gets value as a structure. More...
 
ASPOSE_PAGE_SHARED_API 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 reference 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 () 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. 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 ASPOSE_PAGE_SHARED_API System::SharedPtr< XmpFieldget_Empty ()
 Gets an Empty xmp field. More...
 
static ASPOSE_PAGE_SHARED_API 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 ()
 Implements 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...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< System::Object > value))
 
 XmpField (System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< XmpValue > value)
 Initializes a new instance of the XmpField struct. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< XmpValue > value))
 
 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...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpField >> fields))
 
 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...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpValue >> value))
 
 XmpField (System::SharedPtr< XmpField > baseField, System::SharedPtr< XmpValue > value)
 Initializes a new instance of the XmpField struct. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::SharedPtr< XmpField > baseField, System::SharedPtr< XmpValue > value))
 
 XmpField (System::SharedPtr< XmpField > baseField, System::SharedPtr< System::Object > value)
 Initializes a new instance of the XmpField struct. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (XmpField, CODEPORTING_ARGS(System::SharedPtr< XmpField > baseField, System::SharedPtr< System::Object > value))
 
void SetValue (System::SharedPtr< XmpValue > value)
 Sets value of XMP field. More...
 

Friends

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

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

Represents XMP field.

Constructor & Destructor Documentation

◆ XmpField() [1/6]

Aspose::Page::EPS::XMP::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::Page::EPS::XMP::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::Page::EPS::XMP::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::Page::EPS::XMP::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::Page::EPS::XMP::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::Page::EPS::XMP::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()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpField::Equals ( System::SharedPtr< System::Object obj)
override

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 ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpField> Aspose::Page::EPS::XMP::XmpField::get_Empty ( )
static

Gets an Empty xmp field.

◆ get_FieldType()

ASPOSE_PAGE_SHARED_API XmpFieldType Aspose::Page::EPS::XMP::XmpField::get_FieldType ( )

Gets the type of the field.

The type of the field.

◆ get_IsEmpty()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::EPS::XMP::XmpField::get_IsEmpty ( )

Gets a value indicating whether this instance is empty.

true if this instance is empty; otherwise, false.

◆ get_Lang()

static ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpField> Aspose::Page::EPS::XMP::XmpField::get_Lang ( )
static

Gets xml:lang qualifier.

◆ get_LocalName()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpField::get_LocalName ( ) const

Gets the name of the local.

The name of the local.

◆ get_Name()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpField::get_Name ( ) const

Gets the name.

The name.

◆ get_NamespaceUri()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpField::get_NamespaceUri ( ) const

Gets the namespace URI.

The namespace URI.

◆ get_Prefix()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::EPS::XMP::XmpField::get_Prefix ( ) const

Gets the prefix.

The prefix.

◆ get_Value()

ASPOSE_PAGE_SHARED_API System::SharedPtr<XmpValue> Aspose::Page::EPS::XMP::XmpField::get_Value ( ) const

Gets the value.

The value.

◆ GetHashCode()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::EPS::XMP::XmpField::GetHashCode ( ) const
overridevirtual

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.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< System::Object > value)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::SharedPtr< XmpValue > value)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpField >> fields)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::String prefix, System::String name, System::String namespaceUri, System::ArrayPtr< System::SharedPtr< XmpValue >> value)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [5/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::SharedPtr< XmpField > baseField, System::SharedPtr< XmpValue > value)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [6/6]

Aspose::Page::EPS::XMP::XmpField::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( XmpField  ,
CODEPORTING_ARGS(System::SharedPtr< XmpField > baseField, System::SharedPtr< System::Object > value)   
)
protected

◆ set_LocalName()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::XMP::XmpField::set_LocalName ( System::String  value)

Sets the name of the local.

The name of the local.

◆ set_NamespaceUri()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::XMP::XmpField::set_NamespaceUri ( System::String  value)

Gets the namespace URI.

The namespace URI.

◆ set_Prefix()

ASPOSE_PAGE_SHARED_API void Aspose::Page::EPS::XMP::XmpField::set_Prefix ( System::String  value)

Gets the prefix.

The prefix.

◆ SetValue()

void Aspose::Page::EPS::XMP::XmpField::SetValue ( System::SharedPtr< XmpValue value)
protected

Sets value of XMP field.

Parameters
value

◆ ToArray()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::SharedPtr<XmpValue> > Aspose::Page::EPS::XMP::XmpField::ToArray ( )

Gets value as an array.

Returns
The array.

◆ ToStructure()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::SharedPtr<XmpField> > Aspose::Page::EPS::XMP::XmpField::ToStructure ( )

Gets value as a structure.

Returns
The tructure.

Friends And Related Function Documentation

◆ operator!=

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

◆ operator==

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