public enum PropertyType extends java.lang.Enum<PropertyType>
For each VComponent property (RFC 5545, 3.8, page 80) contains the following: <br>
<br>
Property name toString()
<br>
Allowed property value type (first is default value type) allowedValueTypes()
<br>
Allowed parameters allowedParameters()
<br>
Property class getPropertyClass()
<br>
Method to get property from component getProperty(VComponent)
<br>
Method to parse property string into parent component #parse(VComponent, String)
<br>
Method to copy property into new parent component copyProperty(Property, VComponent)
<br>
Modifier and Type | Method and Description |
---|---|
java.util.List<ParameterType> |
allowedParameters() |
java.util.List<ValueType> |
allowedValueTypes() |
abstract void |
copyProperty(Property<?> childSource,
VComponent destination)
copies the associated property from the source component to the destination component
|
static PropertyType |
enumFromClass(java.lang.Class<? extends VElement> myClass)
get enum from map
|
static PropertyType |
enumFromName(java.lang.String propertyName) |
abstract java.lang.Object |
getProperty(VComponent vComponent)
Returns associated Property<?> or List<Property<?>>
|
java.lang.Class<? extends Property> |
getPropertyClass() |
boolean |
isRequired(VParent parent)
If property is required returns true, false otherwise
|
abstract VChild |
parse(VParent vParent,
java.lang.String propertyContent)
Parses string and sets property.
|
java.lang.String |
toString() |
static PropertyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyType ACTION
public static final PropertyType ATTACHMENT
public static final PropertyType ATTENDEE
public static final PropertyType CALENDAR_SCALE
public static final PropertyType CATEGORIES
public static final PropertyType CLASSIFICATION
public static final PropertyType COMMENT
public static final PropertyType CONTACT
public static final PropertyType DATE_TIME_COMPLETED
public static final PropertyType DATE_TIME_CREATED
public static final PropertyType DATE_TIME_DUE
public static final PropertyType DATE_TIME_END
public static final PropertyType DATE_TIME_STAMP
public static final PropertyType DATE_TIME_START
public static final PropertyType DESCRIPTION
public static final PropertyType DURATION
public static final PropertyType EXCEPTION_DATE_TIMES
public static final PropertyType FREE_BUSY_TIME
public static final PropertyType GEOGRAPHIC_POSITION
public static final PropertyType LAST_MODIFIED
public static final PropertyType LOCATION
public static final PropertyType METHOD
public static final PropertyType NON_STANDARD
public static final PropertyType ORGANIZER
public static final PropertyType PERCENT_COMPLETE
public static final PropertyType PRIORITY
public static final PropertyType PRODUCT_IDENTIFIER
public static final PropertyType RECURRENCE_DATE_TIMES
public static final PropertyType RECURRENCE_IDENTIFIER
public static final PropertyType RECURRENCE_RULE
public static final PropertyType RELATED_TO
public static final PropertyType REPEAT_COUNT
public static final PropertyType REQUEST_STATUS
public static final PropertyType RESOURCES
public static final PropertyType SEQUENCE
public static final PropertyType STATUS
public static final PropertyType SUMMARY
public static final PropertyType TIME_TRANSPARENCY
public static final PropertyType TIME_ZONE_IDENTIFIER
public static final PropertyType TIME_ZONE_NAME
public static final PropertyType TIME_ZONE_OFFSET_FROM
public static final PropertyType TIME_ZONE_OFFSET_TO
public static final PropertyType TIME_ZONE_URL
public static final PropertyType TRIGGER
public static final PropertyType UNIQUE_IDENTIFIER
public static final PropertyType UNIFORM_RESOURCE_LOCATOR
public static final PropertyType VERSION
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PropertyType enumFromName(java.lang.String propertyName)
public static PropertyType enumFromClass(java.lang.Class<? extends VElement> myClass)
get enum from map
public java.lang.Class<? extends Property> getPropertyClass()
public java.lang.String toString()
toString
in class java.lang.Enum<PropertyType>
public java.util.List<ValueType> allowedValueTypes()
public java.util.List<ParameterType> allowedParameters()
public abstract java.lang.Object getProperty(VComponent vComponent)
Returns associated Property<?> or List<Property<?>>
public abstract VChild parse(VParent vParent, java.lang.String propertyContent)
Parses string and sets property. Called by VComponentBase#parseContent()
public abstract void copyProperty(Property<?> childSource, VComponent destination)
copies the associated property from the source component to the destination component
public boolean isRequired(VParent parent)
If property is required returns true, false otherwise