|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.property.AbstractDavProperty
org.apache.jackrabbit.webdav.property.ResourceType
The ResourceType class represents the webdav resource
type property. The property may contain multiple resource type
values. Predefined resource types are those defined by RFC2518 and RFC3253:
the empty default resource type,DAV:collection',DAV:version-history',DAV:activity',DAV:baseline',
| Field Summary | |
static int |
ACTIVITY
The activity resource type |
static int |
BASELINE
The baseline resource type |
static int |
COLLECTION
The collection resource type |
static int |
DEFAULT_RESOURCE
The default resource type |
static int |
VERSION_HISTORY
The version-history resource type |
| Constructor Summary | |
ResourceType(int resourceType)
Create a single-valued resource type property |
|
ResourceType(int[] resourceTypes)
Create a multi-valued resource type property |
|
| Method Summary | |
int[] |
getResourceTypes()
Returns the resource types specified with the constructor. |
Object |
getValue()
Returns the Xml representation of this property as a Set of Elements. |
static int |
registerResourceType(String name,
org.jdom.Namespace namespace)
Register an additional resource type |
org.jdom.Element |
toXml()
Return the JDOM element representation of this property |
| Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
equals, getName, hashCode, isProtected |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_RESOURCE
public static final int COLLECTION
public static final int VERSION_HISTORY
public static final int ACTIVITY
public static final int BASELINE
| Constructor Detail |
public ResourceType(int resourceType)
public ResourceType(int[] resourceTypes)
| Method Detail |
public org.jdom.Element toXml()
toXml in interface DavPropertytoXml in class AbstractDavPropertyDavProperty.toXml()public Object getValue()
Set of Elements.
Set of Elements
representing this property.DavProperty.getValue()public int[] getResourceTypes()
public static int registerResourceType(String name,
org.jdom.Namespace namespace)
name - namespace -
ResourceType property
that contains this type.
IllegalArgumentException - if the given element is null or
if the registration fails for another reason.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||