|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface Elem
Declares that a Java class is a RIFE element.
If id() isn't specified, the short class name (without the
package) will be used as the element's ID. The ID will be interpreted
relative to the ID of the sub-site in which the element is defined.
For example, a site with ID MY.SITE, and an element with
class mypackage.FooStuff, will result in the following
absolute ID for the element: MY.SITE.FooStuff.
If url() isn't specified, the lower-case short class name will
be used. For example the class mypackage.FooStuff, will result
in the foostuff URL.
| Optional Element Summary | |
|---|---|
Autolink[] |
autolinks
This element's auto links. |
ChildTrigger[] |
childTriggers
This element's child triggers. |
String |
contentType
The content type of this element's output. |
Datalink[] |
datalinks
This element's data links. |
Exit[] |
exits
This element's exits. |
Flowlink[] |
flowlinks
This element's flow links. |
String |
id
The ID of this element. |
InBean[] |
inbeans
This element's input beans. |
InCookie[] |
incookies
This element's incookies. |
Class |
inheritsClass
The Java class of the element whose behavior should be inherited. |
String |
inheritsClassIdPrefix
The prefix that will be added to the inheritsClass ID. |
String |
inheritsId
The ID of the element whose behavior should be inherited. |
Input[] |
inputs
This element's inputs. |
OutBean[] |
outbeans
This element's output beans. |
OutCookie[] |
outcookies
This element's outcookies. |
Output[] |
outputs
This element's outputs. |
Pathinfo |
pathinfo
This element's pathinfo specifications. |
Class |
preClass
The Java class of the element that should precede this element. |
String |
preClassIdPrefix
The prefix that will be added to the preClass ID. |
String |
preId
The ID of the element that should precede this element. |
Submission[] |
submissions
This element's submissions. |
String |
url
The URL of this element. |
public abstract String id
If the ID isn't specified, a default will be generated based on the short class name. See the class documentation for more information.
public abstract String url
If the URL isn't specified, a default will be generated based on the lower-cased short class name. See the class documentation for more information.
To explicit specify that no URL should be used, provide an empty string.
public abstract String inheritsId
If inheritsClass is provided, it will override the
inheritsId value.
inheritsClass()public abstract Class inheritsClass
Elem annotation.
If inheritsClass is provided, it will override the
inheritsId value.
The ID will be evaluated locally to the current subsite. If you
have to refer to an ID in another subsite, you have to use the
inheritsClassIdPrefix().
inheritsId(),
inheritsClassIdPrefix()public abstract String inheritsClassIdPrefix
inheritsClass ID.
This makes it possible to refer to an ID in another subsite. Note that this prefix is not validated individually, it is merely added as a string to build the final ID that will be used.
inheritsClass()public abstract String preId
If preClass is provided, it will override the
preId value.
preClass()public abstract Class preClass
Elem annotation.
If preClass is provided, it will override the
preId value.
The ID will be evaluated locally to the current subsite. If you
have to refer to an ID in another subsite, you have to use the
preClassIdPrefix().
preId(),
preClassIdPrefix()public abstract String preClassIdPrefix
preClass ID.
This makes it possible to refer to an ID in another subsite. Note that this prefix is not validated individually, it is merely added as a string to build the final ID that will be used.
preClass()public abstract String contentType
RifeConfig.Engine.getDefaultContentType()
If you want to use a dynamic content type, set it to an empty string
("") here, and use ElementSupport.setContentType(String)
during the element logic.
public abstract Input[] inputs
public abstract InBean[] inbeans
public abstract InCookie[] incookies
public abstract Output[] outputs
public abstract OutBean[] outbeans
public abstract OutCookie[] outcookies
public abstract Submission[] submissions
public abstract Exit[] exits
public abstract ChildTrigger[] childTriggers
public abstract Pathinfo pathinfo
public abstract Flowlink[] flowlinks
public abstract Datalink[] datalinks
public abstract Autolink[] autolinks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||