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