All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.wink.common.model.app.AppCollection Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * 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 http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2008.09.15 at 12:57:27 PM IDT 
//

package org.apache.wink.common.model.app;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessOrder;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;

import org.apache.wink.common.model.atom.AtomCommonAttributes;
import org.apache.wink.common.model.atom.AtomText;
import org.w3c.dom.Element;

/**
 * The "app:collection" Element Per RFC5023
 * 
 * 
 * The "app:collection" Element
 * 
 *    The "app:collection" element describes a Collection.  The app:
 *    collection element MUST contain one atom:title element.
 * 
 *    The app:collection element MAY contain any number of app:accept
 *    elements, indicating the types of representations accepted by the
 *    Collection.  The order of such elements is not significant.
 * 
 *    The app:collection element MAY contain any number of app:categories
 *    elements.
 * 
 *    appCollection =
 *       element app:collection {
 *          appCommonAttributes,
 *          attribute href { atomURI  },
 *          ( atomTitle
 *            & appAccept*
 *            & appCategories*
 *            & extensionSansTitleElement* )
 *       }
 * 
 *  o The "href" Attribute
 * 
 *    The app:collection element MUST contain an "href" attribute, whose
 *    value gives the IRI of the Collection.
 * 
 *  o The "atom:title" Element
 * 
 *    The "atom:title" element is defined in [RFC4287] and gives a human-
 *    readable title for the Collection.
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorOrder(XmlAccessOrder.UNDEFINED) @XmlType(name = "appCollection", propOrder = {"title", "accept", "categories", "any"}) public class AppCollection extends AtomCommonAttributes { @XmlElement(namespace = "http://www.w3.org/2005/Atom", required = true) protected AtomText title; protected List accept; protected List categories; @XmlAnyElement protected List any; @XmlAttribute(required = true) @XmlSchemaType(name = "anySimpleType") protected String href; /** * Gets the value of title. */ public AtomText getTitle() { return title; } /** * Sets the value of title. */ public void setTitle(AtomText value) { this.title = value; } /** * Gets the accept list *

* This accessor method returns a reference to the live list, not a * snapshot. Therefore any modification you make to the returned list will * be present inside the JAXB object. This is why there is not a * set method for the accept property. *

* For example, to add a new item, do as follows: * *

     * getAccept().add(newItem);
     * 
*

* Objects of the following type(s) are allowed in the list * {@link AppAccept } */ public List getAccept() { if (accept == null) { accept = new ArrayList(); } return this.accept; } /** * Gets the categories. *

* This accessor method returns a reference to the live list, not a * snapshot. Therefore any modification you make to the returned list will * be present inside the JAXB object. This is why there is not a * set method for the categories property. *

* For example, to add a new item, do as follows: * *

     * getCategories().add(newItem);
     * 
*

* Objects of the following type(s) are allowed in the list * {@link AppCategories } */ public List getCategories() { if (categories == null) { categories = new ArrayList(); } return this.categories; } /** * Gets extension elements *

* This accessor method returns a reference to the live list, not a * snapshot. Therefore any modification you make to the returned list will * be present inside the JAXB object. This is why there is not a * set method for the any property. *

* For example, to add a new item, do as follows: * *

     * getAny().add(newItem);
     * 
*

* Objects of the following type(s) are allowed in the list {@link Element } */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } /** * Gets the value of href. */ public String getHref() { return href; } /** * Sets the value of href. */ public void setHref(String value) { this.href = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy