blob: 10a874665fed9ee6b5db0f697e0da60ccc5e3118 [file] [log] [blame]
/*******************************************************************************
* 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.JaxbType;
import org.eclipse.jpt.jaxb.core.resource.java.XmlJavaTypeAdapterAnnotation;
public class GenericJavaTypeXmlJavaTypeAdapter
extends AbstractJavaXmlJavaTypeAdapter
{
public GenericJavaTypeXmlJavaTypeAdapter(JaxbType parent, XmlJavaTypeAdapterAnnotation resource) {
super(parent, resource);
}
@Override
public JaxbType getParent() {
return (JaxbType) super.getParent();
}
// ********** type **********
@Override
protected String buildDefaultType() {
return getParent().getJavaResourceType().getQualifiedName();
}
}