com.sapportals.portal.pcd.gl

Class PcdAttributeValueType

java.lang.Object
  extended by com.sapportals.portal.pcd.gl.PcdAttributeValueType

public class PcdAttributeValueType
extends Object

Enumerates the existing value types of IPcdAttribute.


Field Summary
static PcdAttributeValueType BINARY_STREAM
          Attribute value type for binary-stream-valued IPcdAttribute instances.
static PcdAttributeValueType BOOLEAN
          Attribute value type for Boolean-valued IPcdAttribute instances.
static PcdAttributeValueType BYTE
          Attribute value type for Byte-valued IPcdAttribute instances.
static PcdAttributeValueType DATE
          Attribute value type for Date-valued IPcdAttribute instances.
static PcdAttributeValueType DOUBLE
          Attribute value type for Double-valued IPcdAttribute instances.
static PcdAttributeValueType INTEGER
          Attribute value type for Integer-valued IPcdAttribute instances.
static PcdAttributeValueType LOCALE
          Attribute value type for LOCALE-valued IPcdAttribute instances.
static PcdAttributeValueType LONG
          Attribute value type for Long-valued IPcdAttribute instances.
static PcdAttributeValueType STRING
          Attribute value type for String-valued IPcdAttribute instances.
static PcdAttributeValueType TEXT
          Attribute value type for text-valued IPcdAttribute instances.
static int VAL_BINARY_STREAM
          Integer constant for the attribute value type BINARY_STREAM.
static int VAL_BOOLEAN
          Integer constant for the attribute value type BOOLEAN.
static int VAL_BYTE
          Integer constant for the attribute value type BYTE.
static int VAL_DATE
          Integer constant for the attribute value type DATE.
static int VAL_DOUBLE
          Integer constant for the attribute value type DOUBLE.
static int VAL_INTEGER
          Integer constant for the attribute value type INTEGER.
static int VAL_LOCALE
          Integer constant for the attribute value type LOCALE.
static int VAL_LONG
          Integer constant for the attribute value type LONG.
static int VAL_STRING
          Integer constant for the attribute value type STRING.
static int VAL_TEXT
          Integer constant for the attribute value type TEXT.
 
Method Summary
static byte count()
           
protected static void destroy()
           
 boolean equals(PcdAttributeValueType other)
           
 String getName()
          Returns a textual representation of the value type.
static PcdAttributeValueType getType(int intVal)
           
static PcdAttributeValueType getType(Object obj)
           
static PcdAttributeValueType getTypeByName(String name)
          Gets an attribute value type by its name
 int getValue()
          Returns the integer value of this value-type.
 String toString()
          Returns a textual representation of the value type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VAL_BOOLEAN

public static final int VAL_BOOLEAN
Integer constant for the attribute value type BOOLEAN. The value of this constant is 0.

See Also:
getValue(), Constant Field Values

VAL_BYTE

public static final int VAL_BYTE
Integer constant for the attribute value type BYTE. The value of this constant is 1.

See Also:
getValue(), Constant Field Values

VAL_INTEGER

public static final int VAL_INTEGER
Integer constant for the attribute value type INTEGER. The value of this constant is 2.

See Also:
getValue(), Constant Field Values

VAL_DOUBLE

public static final int VAL_DOUBLE
Integer constant for the attribute value type DOUBLE. The value of this constant is 3.

See Also:
getValue(), Constant Field Values

VAL_STRING

public static final int VAL_STRING
Integer constant for the attribute value type STRING. The value of this constant is 4.

See Also:
getValue(), Constant Field Values

VAL_LONG

public static final int VAL_LONG
Integer constant for the attribute value type LONG. The value of this constant is 5.

See Also:
getValue(), Constant Field Values

VAL_TEXT

public static final int VAL_TEXT
Integer constant for the attribute value type TEXT. The value of this constant is 6.

See Also:
getValue(), Constant Field Values

VAL_BINARY_STREAM

public static final int VAL_BINARY_STREAM
Integer constant for the attribute value type BINARY_STREAM. The value of this constant is 7.

See Also:
getValue(), Constant Field Values

VAL_DATE

public static final int VAL_DATE
Integer constant for the attribute value type DATE. The value of this constant is 8.

See Also:
getValue(), Constant Field Values

VAL_LOCALE

public static final int VAL_LOCALE
Integer constant for the attribute value type LOCALE. The value of this constant is 9.

See Also:
getValue(), Constant Field Values

BOOLEAN

public static final PcdAttributeValueType BOOLEAN
Attribute value type for Boolean-valued IPcdAttribute instances.

See Also:
getType(int)

BYTE

public static final PcdAttributeValueType BYTE
Attribute value type for Byte-valued IPcdAttribute instances.

See Also:
getType(int)

INTEGER

public static final PcdAttributeValueType INTEGER
Attribute value type for Integer-valued IPcdAttribute instances.

See Also:
getType(int)

DOUBLE

public static final PcdAttributeValueType DOUBLE
Attribute value type for Double-valued IPcdAttribute instances.

See Also:
getType(int)

STRING

public static final PcdAttributeValueType STRING
Attribute value type for String-valued IPcdAttribute instances.

See Also:
getType(int)

LONG

public static final PcdAttributeValueType LONG
Attribute value type for Long-valued IPcdAttribute instances.

See Also:
getType(int)

TEXT

public static final PcdAttributeValueType TEXT
Attribute value type for text-valued IPcdAttribute instances.

Non-empty text attributes always contain a text for the empty locale. The first setting of a text always additionally sets the text of the empty locale with the same text. The text of the empty locale can also be set explicitly.

Modifying attributes behaves a bit different with text attributes. If the context does not yet contain an attribute with the same id and the empty locale was not set explixitly, then the text of the empty locale becomes the text of the context's original locale if there is one, or it becomes the text of the default locale if there is one.

If the context contains an attribute with the same id and the attribute should be added, then generally the new text is set, but the new text of the empty locale is only set if the empty locale was set explicitly.

The empty locale cannot be removed.

See Also:
getType(int)

BINARY_STREAM

public static final PcdAttributeValueType BINARY_STREAM
Attribute value type for binary-stream-valued IPcdAttribute instances.

See Also:
getType(int)

DATE

public static final PcdAttributeValueType DATE
Attribute value type for Date-valued IPcdAttribute instances.

During search the comparison of two attribute values of type DATE is done with the String representation of the long value representing the Date (Date.getTime()).

See Also:
getType(int)

LOCALE

public static final PcdAttributeValueType LOCALE
Attribute value type for LOCALE-valued IPcdAttribute instances.

See Also:
getType(int)
Method Detail

getValue

public int getValue()
Returns the integer value of this value-type.

Returns:
int

equals

public boolean equals(PcdAttributeValueType other)

getType

public static PcdAttributeValueType getType(int intVal)

count

public static byte count()

getTypeByName

public static PcdAttributeValueType getTypeByName(String name)
Gets an attribute value type by its name

Parameters:
name - name of the attribute value type
Returns:
attribute value type to name or null if there is no such attribute value type

getType

public static PcdAttributeValueType getType(Object obj)
Parameters:
obj -
Returns:
PcdAttributeValueType

getName

public String getName()
Returns a textual representation of the value type.

Returns:
String

toString

public String toString()
Returns a textual representation of the value type. Identical with getName().

Overrides:
toString in class Object
Returns:
String
See Also:
getName()

destroy

protected static void destroy()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS [sap.com] tc/epbc/pcd/pars/srvgldeprecated api BC-PIN-PCD
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api - EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api api EP-PIN
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice