public class DateSingleValueProperty extends AbstractProperty
IProperty
and
IMutableProperty
for details on propertiesAbstractProperty
,
IMutableProperty
,
IProperty
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected PropertyType |
propertyType |
protected Date |
value |
attributes, flags, name, resourceBundles
Modifier | Constructor and Description |
---|---|
|
DateSingleValueProperty(PropertyType propertyType,
IPropertyName name,
Date value)
Construct property instance based on its internals.
|
|
DateSingleValueProperty(PropertyType propertyType,
IPropertyName name,
Date value,
int flags)
Construct property instance based on its internals.
|
|
DateSingleValueProperty(PropertyType propertyType,
IPropertyName name,
Date value,
Properties attributes)
Construct property instance based on its internals.
|
|
DateSingleValueProperty(PropertyType propertyType,
IPropertyName name,
Date value,
Properties attributes,
int flags)
Construct property instance based on its internals.
|
protected |
DateSingleValueProperty(PropertyType propertyType,
IPropertyName name,
Date value,
Properties attributes,
int flags,
ResourceBundles resourceBundles)
Construct property instance based on its internals.
|
Modifier and Type | Method and Description |
---|---|
PropertyType |
getType()
Get immutable type of this property.
|
Date |
getValue()
Get property value.
|
long |
getValueAsLong()
Get property value as long.
|
String |
getValueAsString()
Get the property value converted to a string.
|
String[] |
getValuesAsStrings()
Get the property values converted to a string array.
|
boolean |
isMultiValue()
Returns true if this property is a multi-value property.
|
areFlagsSet, equals, getAttribute, getAttributes, getDescription, getDescription, getFlags, getPropertyName, hashCode, isHidden, isLive, isReadOnly, isRequired, toString
protected PropertyType propertyType
protected Date value
public DateSingleValueProperty(PropertyType propertyType, IPropertyName name, Date value) throws ResourceException
propertyType
- specific property typename
- property namevalue
- property valueResourceException
- when the property creation failedpublic DateSingleValueProperty(PropertyType propertyType, IPropertyName name, Date value, Properties attributes) throws ResourceException
propertyType
- specific property typename
- property namevalue
- property valueattributes
- property attributesResourceException
- when the property creation failedpublic DateSingleValueProperty(PropertyType propertyType, IPropertyName name, Date value, int flags) throws ResourceException
propertyType
- specific property typename
- property namevalue
- property valueflags
- bit array holding internal system attributes according to
PropertyFlags bit mask fieldsResourceException
- when the property creation failedpublic DateSingleValueProperty(PropertyType propertyType, IPropertyName name, Date value, Properties attributes, int flags) throws ResourceException
propertyType
- specific property typename
- property namevalue
- property valueattributes
- property attributesflags
- bit array holding internal system attributes according to
PropertyFlags bit mask fieldsResourceException
- when the property creation failedprotected DateSingleValueProperty(PropertyType propertyType, IPropertyName name, Date value, Properties attributes, int flags, ResourceBundles resourceBundles) throws ResourceException
propertyType
- specific property typename
- property namevalue
- property valueattributes
- property attributesflags
- bit array holding internal system attributes according to
PropertyFlags bit mask fieldsresourceBundles
- resource bundles containing (localized) property
descriptionResourceException
- when the property creation failedpublic PropertyType getType()
public boolean isMultiValue()
public String getValueAsString() throws ResourceException
ResourceException
- when the property is invalidpublic String[] getValuesAsStrings() throws ResourceException
ResourceException
- when the property is invalidpublic Date getValue()
public long getValueAsLong()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice