|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.property.AbstractDavProperty org.apache.jackrabbit.webdav.property.ResourceType
public class 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 a Set of resource types each implementing the XmlSerializable interface. |
static int |
registerResourceType(String name,
Namespace namespace)
Register an additional resource type |
Methods inherited from class org.apache.jackrabbit.webdav.property.AbstractDavProperty |
---|
equals, getName, hashCode, isInvisibleInAllprop, toXml |
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 Object getValue()
Set
of resource types representing this property.DavProperty.getValue()
public int[] getResourceTypes()
public static int registerResourceType(String name, 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 |