/* * Copyright (c) 2010-2013 Evolveum * * Licensed 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 com.evolveum.midpoint.prism.foo; import com.evolveum.midpoint.prism.Objectable; import com.evolveum.midpoint.prism.PrismContainerValue; import com.evolveum.midpoint.prism.PrismObject; import com.evolveum.prism.xml.ns._public.types_3.ObjectReferenceType; import com.evolveum.prism.xml.ns._public.types_3.PolyStringType; import javax.xml.bind.annotation.*; import javax.xml.namespace.QName; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * <p>Java class for ObjectType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ObjectType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd}name" minOccurs="0"/> * <element ref="{http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd}description" minOccurs="0"/> * <element ref="{http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd}extension" minOccurs="0"/> * </sequence> * <attribute name="oid" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ObjectType", propOrder = { "name", "description", "extension", "parentOrgRef" }) @XmlSeeAlso({ UserType.class }) public abstract class ObjectType implements Serializable, Objectable { // This is NOT GENERATED. It is supplied here manually for the testing. static final String NS_FOO = "http://midpoint.evolveum.com/xml/ns/test/foo-1.xsd"; // This is NOT GENERATED. It is supplied here manually for the testing. public final static QName F_NAME = new QName(NS_FOO, "name"); public final static QName F_DESCRIPTION = new QName(NS_FOO, "description"); public final static QName F_EXTENSION = new QName(NS_FOO, "extension"); public final static QName F_PARENT_ORG_REF = new QName(NS_FOO, "parentOrgRef"); private final static long serialVersionUID = 201202081233L; protected PolyStringType name; protected String description; protected Extension extension; @XmlAttribute(name = "oid") protected String oid; @XmlAttribute(name = "version") protected String version; protected List<ObjectReferenceType> parentOrgRef; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public PolyStringType getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(PolyStringType value) { this.name = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the extension property. * * @return * possible object is * {@link Extension } * */ public Extension getExtension() { return extension; } /** * Sets the value of the extension property. * * @param value * allowed object is * {@link Extension } * */ public void setExtension(Extension value) { this.extension = value; } /** * Gets the value of the oid property. * * @return * possible object is * {@link String } * */ public String getOid() { return oid; } /** * Sets the value of the oid property. * * @param value * allowed object is * {@link String } * */ public void setOid(String value) { this.oid = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } @Override public String toDebugName() { return toDebugType()+":"+getOid()+"("+getName()+")"; } @Override public String toDebugType() { return "object"; } @Override public PrismObject asPrismObject() { throw new UnsupportedOperationException("not implemented yet"); } @Override public void setupContainer(PrismObject object) { throw new UnsupportedOperationException("not implemented yet"); } @Override public PrismContainerValue asPrismContainerValue() { throw new UnsupportedOperationException("not implemented yet"); } @Override public void setupContainerValue(PrismContainerValue container) { throw new UnsupportedOperationException("not implemented yet"); } public List<ObjectReferenceType> getParentOrgRef() { if (parentOrgRef == null) { parentOrgRef = new ArrayList<ObjectReferenceType>(); } return parentOrgRef; } }