|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.pcd.gl.PcdAttributeValueType
public class PcdAttributeValueType
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 |
|---|
public static final int VAL_BOOLEAN
BOOLEAN. The value of this constant is 0.
getValue(),
Constant Field Valuespublic static final int VAL_BYTE
BYTE. The value of this constant is 1.
getValue(),
Constant Field Valuespublic static final int VAL_INTEGER
INTEGER. The value of this constant is 2.
getValue(),
Constant Field Valuespublic static final int VAL_DOUBLE
DOUBLE. The value of this constant is 3.
getValue(),
Constant Field Valuespublic static final int VAL_STRING
STRING. The value of this constant is 4.
getValue(),
Constant Field Valuespublic static final int VAL_LONG
LONG. The value of this constant is 5.
getValue(),
Constant Field Valuespublic static final int VAL_TEXT
TEXT. The value of this constant is 6.
getValue(),
Constant Field Valuespublic static final int VAL_BINARY_STREAM
BINARY_STREAM. The value of this constant is 7.
getValue(),
Constant Field Valuespublic static final int VAL_DATE
DATE. The value of this constant is 8.
getValue(),
Constant Field Valuespublic static final int VAL_LOCALE
LOCALE. The value of this constant is 9.
getValue(),
Constant Field Valuespublic static final PcdAttributeValueType BOOLEAN
getType(int)public static final PcdAttributeValueType BYTE
getType(int)public static final PcdAttributeValueType INTEGER
getType(int)public static final PcdAttributeValueType DOUBLE
getType(int)public static final PcdAttributeValueType STRING
getType(int)public static final PcdAttributeValueType LONG
getType(int)public static final PcdAttributeValueType TEXT
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.
getType(int)public static final PcdAttributeValueType BINARY_STREAM
getType(int)public static final PcdAttributeValueType DATE
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()).
getType(int)public static final PcdAttributeValueType LOCALE
getType(int)| Method Detail |
|---|
public int getValue()
public boolean equals(PcdAttributeValueType other)
public static PcdAttributeValueType getType(int intVal)
public static byte count()
public static PcdAttributeValueType getTypeByName(String name)
name - name of the attribute value type
public static PcdAttributeValueType getType(Object obj)
obj -
public String getName()
public String toString()
toString in class ObjectgetName()protected static void destroy()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
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
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||