Skip to main content
summaryrefslogtreecommitdiffstats
blob: 52a57fdafda1ebf8099c36bc7f6a4196f3ded2db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2011 Oracle. 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:
 *     Oracle - initial API and implementation
 ******************************************************************************/
package org.eclipse.jpt.jaxb.core.internal.context.java;

import org.eclipse.jpt.jaxb.core.context.JaxbContainmentMapping;
import org.eclipse.jpt.jaxb.core.context.JaxbPackage;
import org.eclipse.jpt.jaxb.core.context.JaxbPersistentAttribute;
import org.eclipse.jpt.jaxb.core.context.JaxbPersistentClass;
import org.eclipse.jpt.jaxb.core.resource.java.XmlSchemaTypeAnnotation;

public class GenericJavaContainmentMappingXmlSchemaType
	extends GenericJavaXmlSchemaType
{

	public GenericJavaContainmentMappingXmlSchemaType(JaxbContainmentMapping parent, XmlSchemaTypeAnnotation xmlSchemaTypeAnnotation) {
		super(parent, xmlSchemaTypeAnnotation);
	}

	@Override
	public JaxbContainmentMapping getParent() {
		return (JaxbContainmentMapping) super.getParent();
	}

	protected JaxbContainmentMapping getJaxbContainmentMapping() {
		return getParent();
	}

	protected JaxbPersistentAttribute getPersistentAttribute() {
		return getJaxbContainmentMapping().getParent();
	}

	protected JaxbPersistentClass getPersistentClass() {
		return getPersistentAttribute().getParent();
	}

	@Override
	protected JaxbPackage getJaxbPackage() {
		return this.getPersistentClass().getJaxbPackage();
	}
}

Back to the top