|
||||||||||
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.jcr.nodetype.NodeTypeProperty
public class NodeTypeProperty
NodeTypeProperty
...
Field Summary |
---|
Constructor Summary | |
---|---|
NodeTypeProperty(DavProperty property)
Create a new NodeTypeProperty from the specified general
DavProperty object. |
|
NodeTypeProperty(DavPropertyName name,
NodeType[] nodeTypes,
boolean isProtected)
|
|
NodeTypeProperty(DavPropertyName name,
NodeType nodeType,
boolean isProtected)
|
|
NodeTypeProperty(DavPropertyName name,
String[] nodeTypeNames,
boolean isProtected)
|
Method Summary | |
---|---|
Set |
getNodeTypeNames()
Return a set of nodetype names present in this property. |
Object |
getValue()
Returns the value of this property which is a Set of nodetype names. |
Element |
toXml(Document document)
Return a 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 |
Constructor Detail |
---|
public NodeTypeProperty(DavPropertyName name, NodeType nodeType, boolean isProtected)
public NodeTypeProperty(DavPropertyName name, NodeType[] nodeTypes, boolean isProtected)
public NodeTypeProperty(DavPropertyName name, String[] nodeTypeNames, boolean isProtected)
public NodeTypeProperty(DavProperty property)
NodeTypeProperty
from the specified general
DavProperty object.
property
- Method Detail |
---|
public Set getNodeTypeNames()
public Object getValue()
getValue
in interface DavProperty
public Element toXml(Document document)
AbstractDavProperty
new DavProperty("displayname", "WebDAV Directory").toXml gives a element like: <D:displayname>WebDAV Directory</D:displayname> new DavProperty("resourcetype", new Element("collection")).toXml gives a element like: <D:resourcetype><D:collection/></D:resourcetype> Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) }; new DavProperty("custom-property", customVals, customNamespace).toXml gives an element like <Z:custom-property> <Z:bla/> <Z:bli/> </Z:custom-property>
toXml
in interface XmlSerializable
toXml
in class AbstractDavProperty
document
- to be used as factory.
XmlSerializable.toXml(Document)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |