Enum AbstractResourceTag.ResultPropertyType
- java.lang.Object
-
- java.lang.Enum<AbstractResourceTag.ResultPropertyType>
-
- net.anotheria.anosite.tags.resource.AbstractResourceTag.ResultPropertyType
-
- All Implemented Interfaces:
Serializable,Comparable<AbstractResourceTag.ResultPropertyType>
- Enclosing class:
- AbstractResourceTag
protected static enum AbstractResourceTag.ResultPropertyType extends Enum<AbstractResourceTag.ResultPropertyType>
Defines result type - which should be returned by tag. Available result properties enumeration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOCUMENT_ALIASAlias of document! Can be applied to CMS_Image only!DOCUMENT_ALTAlt attribute of document.DOCUMENT_TITLETitle of selected document.FILE_OR_IMAGEFile or image property.
-
Field Summary
Fields Modifier and Type Field Description protected static AbstractResourceTag.ResultPropertyTypeDEFAULTDefault constant.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractResourceTag.ResultPropertyTypegetPropertyNameByValue(String val)ReturnAbstractResourceTag.ResultPropertyTypewith selected value.StringgetValue()static AbstractResourceTag.ResultPropertyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractResourceTag.ResultPropertyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT_TITLE
public static final AbstractResourceTag.ResultPropertyType DOCUMENT_TITLE
Title of selected document.
-
DOCUMENT_ALIAS
public static final AbstractResourceTag.ResultPropertyType DOCUMENT_ALIAS
Alias of document! Can be applied to CMS_Image only!
-
DOCUMENT_ALT
public static final AbstractResourceTag.ResultPropertyType DOCUMENT_ALT
Alt attribute of document. Can be applied to CMS_Image only!
-
FILE_OR_IMAGE
public static final AbstractResourceTag.ResultPropertyType FILE_OR_IMAGE
File or image property. (Depends on document instance).
-
-
Field Detail
-
DEFAULT
protected static final AbstractResourceTag.ResultPropertyType DEFAULT
Default constant.
-
-
Method Detail
-
values
public static AbstractResourceTag.ResultPropertyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractResourceTag.ResultPropertyType c : AbstractResourceTag.ResultPropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractResourceTag.ResultPropertyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
getPropertyNameByValue
public static AbstractResourceTag.ResultPropertyType getPropertyNameByValue(String val)
ReturnAbstractResourceTag.ResultPropertyTypewith selected value.- Parameters:
val- value- Returns:
AbstractResourceTag.ResultPropertyType
-
-