public class ContentType extends Object implements Serializable
ContentType
can exist in Conjunction with each other.
These are lose definitions only provided to give some Fuzzy classification of type
of Data in the System.Modifier and Type | Field and Description |
---|---|
static ContentType |
ARRAY
Format specifies the Array
|
static ContentType |
BUTTON |
static ContentType |
BUTTON_SUBMIT |
static ContentType |
CEHCK_BOX_3
True/False/Dont-Care Check-Box
|
static ContentType |
CHECK_BOX
True/False Check-Box
|
static ContentType |
DATE
Date style to be applied
|
static ContentType |
EXTERNAL_FEED
Feed Data; external Data; WebService Data; RSS; data meant for/from External System etc.
|
static ContentType |
FILE_BIN
Any file that needs to be treated as Binary content
|
static ContentType |
FILE_EMBED
A file that can be embedded using a plugin to view it; like a PDF; Excel etc.
|
static ContentType |
GENERATED
Data that has meaning in relation to the Product; like Price etc.
|
static ContentType |
HIDDEN
Hidden; the element will be used but not displayed.
|
static ContentType |
HTML
Content that needs to be displayed as HTML.
|
static ContentType |
IMG
Any image + Upload of image
|
static ContentType |
IMG_REF
Any image (referece).
|
static ContentType |
INPUT |
static ContentType |
INPUT_AUTO_SUGGEST
An input box with Auto Suggest ability
|
static ContentType |
INPUT_PREDECTIVE
Input with Predective Text
|
static ContentType |
JSON
A JSON ContentType that describes the content.
|
static ContentType |
JSON_ARRAY
Format specifies the Array but in Json format; ideal for Array of Objects
|
static ContentType |
LABEL
Display Label; Read Only
|
static ContentType |
LINK
Link is same as , the only difference is a REF may have multiple aspects like the display of the link and the actual Action.
|
static ContentType |
MARKUP
Content that should not be escaped; and the markups have their literal meaning.
|
static ContentType |
MARKUP_SCRIPT
A Markup based Script, use for web.
|
static ContentType |
META
Information that describes content; but is never meant for actual display or UI processing.
|
static ContentType |
MULTI_LINE_LABEL
Display Multi Line Label Label; Read Only
|
static ContentType |
MULTI_SELECT
Field value should be a comma separated list of Strings
|
static ContentType |
PASSWORD |
static ContentType |
POINTER
Similar to this
REF , however while REF is usually a Data Item, that is fixed, a Pointer can point to a Shared Item
like another Object reference (by Id, Sku etc). |
static ContentType |
RADIO
Field value should be a comma separated list of Strings
|
static ContentType |
REF
Reference : A URL; Link or even a reference to a Page; Bookmark; Uploaded Document etc.
|
static ContentType |
SAFE_HTML
Content that needs to be displayed as HTML.
|
static ContentType |
SELECT
Field value should be a comma separated list of Strings
|
static ContentType |
SERVER_SCRIPT
A Script that will be executed Server side, not as markup.
|
static ContentType |
TEXT
Any Content that contains Text.
|
static ContentType |
TEXT_AREA
Text in a Text Area
|
static ContentType |
XML
An XML
|
Constructor and Description |
---|
ContentType(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
This type will be referred to by this Name; should be unique
|
Class |
getRef() |
int |
hashCode() |
void |
setName(String name)
This type will be referred to by this Name; should be unique
|
void |
setRef(Class ref) |
public static final ContentType IMG
public static final ContentType IMG_REF
public static final ContentType TEXT
public static final ContentType LABEL
public static final ContentType MULTI_LINE_LABEL
public static final ContentType MARKUP
ContentFacet
public static final ContentType HTML
MARKUP
can be used as input where as Labels are purely for display and are/should never be processed from input via Forms.public static final ContentType XML
public static final ContentType SAFE_HTML
MARKUP
can be used as input where as Labels are purely for display and are/should never be processed from input via Forms.public static final ContentType GENERATED
public static final ContentType META
public static final ContentType EXTERNAL_FEED
public static final ContentType REF
public static final ContentType LINK
public static final ContentType POINTER
REF
, however while REF is usually a Data Item, that is fixed, a Pointer can point to a Shared Item
like another Object reference (by Id, Sku etc). This is strictly useful in defining shared dynamic data.
Where if the POINTED to object changes, then the Pointer will simply show the updated value without requiring any change in valuepublic static final ContentType JSON
public static final ContentType FILE_BIN
public static final ContentType FILE_EMBED
public static final ContentType ARRAY
public static final ContentType JSON_ARRAY
public static final ContentType INPUT
public static final ContentType PASSWORD
public static final ContentType RADIO
public static final ContentType SELECT
public static final ContentType MULTI_SELECT
public static final ContentType INPUT_AUTO_SUGGEST
public static final ContentType HIDDEN
public static final ContentType TEXT_AREA
public static final ContentType CHECK_BOX
public static final ContentType CEHCK_BOX_3
public static final ContentType INPUT_PREDECTIVE
public static final ContentType DATE
public static final ContentType MARKUP_SCRIPT
public static final ContentType SERVER_SCRIPT
: redner final Script if type "velocity"
,
(which passes context as ContentContext via a ThreadLocal to VelocityContentTransformer
public static final ContentType BUTTON
public static final ContentType BUTTON_SUBMIT
public ContentType(String name)
Copyright © 2018. All rights reserved.