| /******************************************************************************* |
| * 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.JaxbPersistentClass; |
| import org.eclipse.jpt.jaxb.core.resource.java.XmlJavaTypeAdapterAnnotation; |
| |
| public class GenericJavaTypeXmlJavaTypeAdapter |
| extends AbstractJavaXmlJavaTypeAdapter |
| { |
| |
| public GenericJavaTypeXmlJavaTypeAdapter(JaxbPersistentClass parent, XmlJavaTypeAdapterAnnotation resource) { |
| super(parent, resource); |
| } |
| |
| @Override |
| public JaxbPersistentClass getParent() { |
| return (JaxbPersistentClass) super.getParent(); |
| } |
| |
| // ********** type ********** |
| @Override |
| protected String buildDefaultType() { |
| return getParent().getJavaResourceType().getQualifiedName(); |
| } |
| |
| } |