/******************************************************************************* * Copyright (c) 2011, 2016 Eurotech and/or its affiliates * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Eurotech *******************************************************************************/ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147 // 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: 2012.11.25 at 06:05:15 PM CET // package org.eclipse.kura.core.configuration.metatype; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.namespace.QName; import org.eclipse.kura.configuration.metatype.Attribute; import org.eclipse.kura.configuration.metatype.TObject; import org.w3c.dom.Element; /** * <p> * Java class for Tobject complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Tobject"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Attribute" type="{http://www.osgi.org/xmlns/metatype/v1.2.0}Tattribute" maxOccurs="unbounded" minOccurs="0"/> * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="ocdref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <anyAttribute/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ public class Tobject implements TObject { protected List<Tattribute> attribute; protected List<Object> any; protected String ocdref; private final Map<QName, String> otherAttributes = new HashMap<QName, String>(); /** * Gets the value of the attribute property. * * <p> * 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 <CODE>set</CODE> method for the attribute property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getAttribute().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Tattribute } * * */ @Override public List<Attribute> getAttribute() { if (this.attribute == null) { this.attribute = new ArrayList<Tattribute>(); } return new ArrayList<Attribute>(this.attribute); } /** * Gets the value of the any property. * * <p> * 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 <CODE>set</CODE> method for the any property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getAny().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Element } * {@link Object } * * */ public List<Object> getAny() { if (this.any == null) { this.any = new ArrayList<Object>(); } return this.any; } /** * Gets the value of the ocdref property. * * @return * possible object is * {@link String } * */ @Override public String getOcdref() { return this.ocdref; } /** * Sets the value of the ocdref property. * * @param value * allowed object is * {@link String } * */ public void setOcdref(String value) { this.ocdref = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * * <p> * the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map<QName, String> getOtherAttributes() { return this.otherAttributes; } }