⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 davproperty.java

📁 jsr170接口的java实现。是个apache的开源项目。
💻 JAVA
字号:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.jackrabbit.webdav.property;import org.apache.jackrabbit.webdav.DavConstants;import org.apache.jackrabbit.webdav.xml.XmlSerializable;/** * The <code>Property</code> class represents a Property of a WebDAV * resource. The {@link #hashCode()} and {@link #equals(Object)} METHODS are * overridden in a way, that the name and value of the property are * respected. this means, an property is equal to another, if the names * and values are equal.<br> * The XML representation of a <code>DavProperty</code>: * <pre> * new DavProperty("displayname", "WebDAV Directory").toXml * gives a element like: * &lt;D:displayname&gt;WebDAV Directory&lt;/D:displayname&gt; * * new DavProperty("resourcetype", new Element("collection")).toXml * gives a element like: * &lt;D:resourcetype&gt;&lt;D:collection/&gt;&lt;/D:resourcetype&gt; * * Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) }; * new DavProperty("custom-property", customVals, customNamespace).toXml * gives an element like * &lt;Z:custom-property&gt; *    &lt;Z:bla/&gt; *    &lt;Z:bli/&gt; * &lt;/Z:custom-property&gt; * </pre> */public interface DavProperty extends XmlSerializable, DavConstants {    /**     * Returns the name of this property     *      * @return the name of this property     */    public DavPropertyName getName();    /**     * Returns the value of this property     *     * @return the value of this property     */    public Object getValue();    /**     * Return true if this property is protected. A protected property     * will not be returned in a {@link DavConstants#PROPFIND_ALL_PROP DAV:allprop}     * PROPFIND request and cannot be set/removed with a PROPPATCH request.     *     * @return true, if this property is protected.     */    public boolean isProtected();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -