public final class PropertyValue extends Object implements com.aspose.ms.System.IEquatable<PropertyValue>
Represents property value inside DocumentMetadata{T}
.
Constructor and Description |
---|
PropertyValue(boolean value)
Initializes a new instance of the
PropertyValue class with boolean value. |
PropertyValue(byte[] values)
Initializes a new instance of the
PropertyValue class with byte array. |
PropertyValue(Date value)
Initializes a new instance of the
PropertyValue class with DateTime value. |
PropertyValue(double value)
Initializes a new instance of the
PropertyValue class with double value. |
PropertyValue(int value)
Initializes a new instance of the
PropertyValue class with integer value. |
PropertyValue(long value)
Initializes a new instance of the
PropertyValue class with long value. |
PropertyValue(String value)
Initializes a new instance of the
PropertyValue class with string value. |
PropertyValue(String[] values)
Initializes a new instance of the
PropertyValue class with 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)
Indicates whether the current object is equal to another object of the same type.
|
int |
getType()
Gets
MetadataPropertyType . |
int |
hashCode()
Returns a hash code for this instance.
|
Boolean |
toBool()
Gets boolean value.
|
byte[] |
toByteArray()
Gets array of
Byte value. |
Date |
toDateTime()
Gets
DateTime value. |
Double |
toDouble()
Gets double value.
|
Integer |
toInt()
Gets integer value.
|
Long |
toLong()
Gets long value.
|
String |
toString()
Gets string value.
|
String[] |
toStringArray()
Gets array of
String value. |
com.aspose.ms.System.Nullable<com.aspose.ms.System.TimeSpan> |
toTimeSpan()
Gets
TimeSpan value. |
public PropertyValue(int value)
Initializes a new instance of the PropertyValue
class with integer value.
value
- Integer value.public PropertyValue(long value)
Initializes a new instance of the PropertyValue
class with long value.
value
- Long value.public PropertyValue(boolean value)
Initializes a new instance of the PropertyValue
class with boolean value.
value
- Boolean value.public PropertyValue(double value)
Initializes a new instance of the PropertyValue
class with double value.
value
- Double value.public PropertyValue(String value)
Initializes a new instance of the PropertyValue
class with string value.
value
- String value.public PropertyValue(Date value)
Initializes a new instance of the PropertyValue
class with DateTime
value.
value
- DateTime value.public PropertyValue(String[] values)
Initializes a new instance of the PropertyValue
class with string array.
values
- String values.public PropertyValue(byte[] values)
Initializes a new instance of the PropertyValue
class with byte array.
values
- The values.public final int getType()
Gets MetadataPropertyType
.
public final Integer toInt()
Gets integer value.
MetadataPropertyType.Integer
type; otherwise null.public final Long toLong()
Gets long value.
MetadataPropertyType.Long
type; otherwise null.public final Boolean toBool()
Gets boolean value.
MetadataPropertyType.Boolean
type; otherwise null.public final Double toDouble()
Gets double value.
MetadataPropertyType.Double
type; otherwise null.public String toString()
Gets string value.
public final Date toDateTime()
Gets DateTime
value.
MetadataPropertyType.DateTime
type; otherwise null.public final com.aspose.ms.System.Nullable<com.aspose.ms.System.TimeSpan> toTimeSpan()
Gets TimeSpan
value.
MetadataPropertyType.TimeSpan
type; otherwise null.public final String[] toStringArray()
Gets array of String
value.
MetadataPropertyType.StringArray
type; otherwise null.public final byte[] toByteArray()
Gets array of Byte
value.
MetadataPropertyType.ByteArray
type; otherwise null.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.Copyright © 2018. All rights reserved.