/******************************************************************************* * 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. * *******************************************************************************/ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.1-b02-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2008.12.04 at 03:08:15 PM IST // package org.apache.wink.webdav.model; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlMixed; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * The <code>displayname</code> Property per the WebDAV specification [RFC 4918] * * <pre> * Name: displayname * Namespace: DAV: * Purpose: Provides a name for the resource that is suitable for * presentation to a user. * Description: The displayname property should be defined on all DAV * compliant resources. If present, the property contains a description * of the resource that is suitable for presentation to a user. * * <!ELEMENT displayname (#PCDATA) > * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = {"content"}) @XmlRootElement(name = "displayname") public class Displayname { @XmlMixed protected List<String> content; public Displayname() { } public Displayname(String value) { setValue(value); } private List<String> getContent() { if (content == null) { content = new ArrayList<String>(); } return this.content; } /** * Sets the value. * * @param value the value to set */ public void setValue(String value) { List<String> content = getContent(); content.clear(); if (value != null) { content.add(value); } } /** * Gets the value. * * @return the value */ public String getValue() { List<String> content = getContent(); if (content.size() == 0) { return null; } return content.get(0); } }