public class ResourceTypeProperty extends BaseProperty
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG_COLLECTION
The property collection tag.
|
static java.lang.String |
TAG_NAME
The property name.
|
static java.lang.String |
TAG_PRINCIPAL |
element, response
Constructor and Description |
---|
ResourceTypeProperty(ResponseEntity response,
org.w3c.dom.Element element)
Default constructor for the property.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPropertyAsString()
This method returns the value of the property.
|
boolean |
isCollection()
Returns true if the resource is a collection.
|
boolean |
isPrincipal() |
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode, toString
public static final java.lang.String TAG_NAME
public static final java.lang.String TAG_COLLECTION
public static final java.lang.String TAG_PRINCIPAL
public ResourceTypeProperty(ResponseEntity response, org.w3c.dom.Element element)
public boolean isCollection()
<D:resourcetype><D:collection/></D:resourcetype>
public boolean isPrincipal()
public java.lang.String getPropertyAsString()
getPropertyAsString
in interface Property
getPropertyAsString
in class BaseProperty