public final class PropertyValue extends Object implements com.aspose.ms.System.IEquatable<PropertyValue>
Represents a property value.
Constructor and Description |
---|
PropertyValue(boolean value)
Initializes a new instance of the
PropertyValue class with a boolean value. |
PropertyValue(byte[] values)
Initializes a new instance of the
PropertyValue class with a byte array. |
PropertyValue(Date value)
Initializes a new instance of the
PropertyValue class with a DateTime value. |
PropertyValue(double value)
Initializes a new instance of the
PropertyValue class with a double value. |
PropertyValue(int value)
Initializes a new instance of the
PropertyValue class with an integer value. |
PropertyValue(long value)
Initializes a new instance of the
PropertyValue class with a long value. |
PropertyValue(String value)
Initializes a new instance of the
PropertyValue class with a string value. |
PropertyValue(String[] values)
Initializes a new instance of the
PropertyValue class with a string array. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(PropertyValue other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(PropertyValue other,
boolean ignoreCase)
Deprecated.
|
int |
getType()
Gets the
MetadataPropertyType . |
int |
hashCode()
Returns a hash code for this instance.
|
Boolean |
toBool()
Gets the boolean value.
|
byte[] |
toByteArray()
Gets the array of
byte values. |
Date |
toDateTime()
Gets the
DateTime value. |
Double |
toDouble()
Gets the double value.
|
double[] |
toDoubleArray()
Gets the array of
double values. |
Integer |
toInt()
Gets the integer value.
|
int[] |
toIntegerArray()
Gets the array of
int values. |
Long |
toLong()
Gets the long value.
|
long[] |
toLongArray()
Gets the array of
long values. |
Metadata |
toMetadata()
Gets the
Metadata value. |
Metadata[] |
toMetadataArray()
Gets the array of
Metadata values. |
String |
toString()
Returns a string that represents the property value.
|
String[] |
toStringArray()
Gets the
String array. |
public PropertyValue(int value)
Initializes a new instance of the PropertyValue
class with an integer value.
value
- An Int32
value.public PropertyValue(long value)
Initializes a new instance of the PropertyValue
class with a long value.
value
- An Int64
value.public PropertyValue(boolean value)
Initializes a new instance of the PropertyValue
class with a boolean value.
value
- A Boolean
value.public PropertyValue(double value)
Initializes a new instance of the PropertyValue
class with a double value.
value
- A Double
value.public PropertyValue(String value)
Initializes a new instance of the PropertyValue
class with a string value.
value
- A String
value.public PropertyValue(Date value)
Initializes a new instance of the PropertyValue
class with a DateTime
value.
value
- A DateTime
value.public PropertyValue(String[] values)
Initializes a new instance of the PropertyValue
class with a string array.
values
- A string array.public PropertyValue(byte[] values)
Initializes a new instance of the PropertyValue
class with a byte array.
values
- A byte array.public final int getType()
Gets the MetadataPropertyType
.
public final Integer toInt()
Gets the integer value.
MetadataPropertyType.Integer
type; otherwise null.public final Long toLong()
Gets the long value.
MetadataPropertyType.Long
type; otherwise null.public final Boolean toBool()
Gets the boolean value.
MetadataPropertyType.Boolean
type; otherwise null.public final Double toDouble()
Gets the double value.
MetadataPropertyType.Double
type; otherwise null.public String toString()
Returns a string that represents the property value.
public final Date toDateTime()
Gets the DateTime
value.
MetadataPropertyType.DateTime
type; otherwise null.public final String[] toStringArray()
Gets the String
array.
MetadataPropertyType.StringArray
type; otherwise null.public final byte[] toByteArray()
Gets the array of byte
values.
MetadataPropertyType.ByteArray
type; otherwise null.public final double[] toDoubleArray()
Gets the array of double
values.
MetadataPropertyType.DoubleArray
type; otherwise null.public final int[] toIntegerArray()
Gets the array of int
values.
MetadataPropertyType.IntegerArray
type; otherwise null.public final long[] toLongArray()
Gets the array of long
values.
MetadataPropertyType.IntegerArray
type; otherwise null.public final Metadata[] toMetadataArray()
Gets the array of Metadata
values.
Metadata
values if the property has
the MetadataPropertyType.MetadataArray
type; otherwise null.public final Metadata toMetadata()
Gets the Metadata
value.
Metadata
value if the property has
the MetadataPropertyType.Metadata
type; otherwise null.@Deprecated public final boolean equals(PropertyValue other, boolean ignoreCase)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.ignoreCase
- If set to true
then ignore case.true
if the current object is equal to the other
parameter; otherwise, false.public final boolean equals(PropertyValue other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.true
if the current object is equal to the other
parameter; otherwise, false.public boolean equals(Object obj)
Indicates whether the current object is equal to another object of the same type.
equals
in interface com.aspose.ms.System.IEquatable<PropertyValue>
equals
in class Object
obj
- An object to compare with this object.true
if the current object is equal to the obj
parameter; otherwise, false.