@Inherited
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,ANNOTATION_TYPE,TYPE,PARAMETER})
public @interface Type
The Type annotation can be used with custom smart services and custom functions to indicate the type of the parameters and return values. In most cases, primitive types will be automatically converted to their Appian type equivalent, but in the cases of Appian objects (like Community) a type annotation should be used. Type annotations have been pre-defined for the standard Appian objects (see the See Also list below).
The Type annotation can also be used to indicate that a type is a custom data type:
@Type(namespace="http://example.org", name="MyCustomType")
public void setMyValue(TypedValue v);
The Type annotation can be used to annotate custom pre-defined data type annotations like the ones provided for Appian types. For example:
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Type(namespace="http://example.org", name="MyCustomType")
public @interface MyCustomDataType
CommunityDataType
,
DiscussionMessageDataType
,
DiscussionThreadDataType
,
DocumentDataType
,
DocumentOrFolderDataType
,
EmailAddressDataType
,
EmailRecipientDataType
,
FolderDataType
,
ForumDataType
,
GroupDataType
,
KnowledgeCenterDataType
,
PageDataType
,
UserDataType
,
UserOrGroupDataType
,
PasswordDataType
,
ConstantDataType
,
RuleDataType
,
EncryptedTextDataType
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
APPIAN_NAMESPACE |
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.