org.eclipse.persistence.jaxb.javamodel.oxm.OXMJAXBElementImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eclipselink Show documentation
Show all versions of eclipselink Show documentation
EclipseLink build based upon Git transaction f2b9fc5
/*
* Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Rick Barkhouse - 2.2 - Initial implementation
package org.eclipse.persistence.jaxb.javamodel.oxm;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.persistence.jaxb.javamodel.*;
/**
* INTERNAL:
*
* Purpose: Specialized JavaClass
used to represent a
* JAXBElement
. Used when bootstrapping a DynamicJAXBContext
* from XML Bindings.
*
*
*
* Responsibilities:
*
*
* - Provide Class information to the
JavaModel
.
*
*
* @since EclipseLink 2.2
*
* @see org.eclipse.persistence.jaxb.javamodel.JavaClass
* @see org.eclipse.persistence.jaxb.javamodel.oxm.OXMJAXBElementImpl
*/
public class OXMJAXBElementImpl implements JavaClass {
private String parameterType;
private JavaModel javaModel;
public OXMJAXBElementImpl(String paramType, JavaModel model) {
this.parameterType = paramType;
this.javaModel = model;
}
public Collection getActualTypeArguments() {
ArrayList args = new ArrayList(1);
args.add(this.javaModel.getClass(this.parameterType));
return args;
}
public JavaClass getComponentType() {
return null;
}
public JavaConstructor getConstructor(JavaClass[] parameterTypes) {
return null;
}
public Collection getConstructors() {
return null;
}
public Collection getDeclaredClasses() {
return null;
}
public JavaConstructor getDeclaredConstructor(JavaClass[] parameterTypes) {
return null;
}
public Collection getDeclaredConstructors() {
return null;
}
public JavaField getDeclaredField(String arg0) {
return null;
}
public Collection getDeclaredFields() {
return null;
}
public JavaMethod getDeclaredMethod(String arg0, JavaClass[] arg1) {
return null;
}
public Collection getDeclaredMethods() {
return null;
}
public JavaMethod getMethod(String arg0, JavaClass[] arg1) {
return null;
}
public Collection getMethods() {
return null;
}
public int getModifiers() {
return 0;
}
public String getName() {
return getQualifiedName();
}
public JavaPackage getPackage() {
return null;
}
public String getPackageName() {
return null;
}
public String getQualifiedName() {
return JAVAX_XML_BIND_JAXBELEMENT;
}
public String getRawName() {
return getQualifiedName();
}
public JavaClass getSuperclass() {
return null;
}
@Override
public Type[] getGenericInterfaces() {
return new Type[0];
}
public Type getGenericSuperclass() {
return null;
}
public boolean hasActualTypeArguments() {
return false;
}
public boolean isAbstract() {
return false;
}
public boolean isAnnotation() {
return false;
}
public boolean isArray() {
return false;
}
public boolean isAssignableFrom(JavaClass arg0) {
return false;
}
public boolean isEnum() {
return false;
}
public boolean isFinal() {
return false;
}
public boolean isInterface() {
return false;
}
public boolean isMemberClass() {
return false;
}
public boolean isPrimitive() {
return false;
}
public boolean isPrivate() {
return false;
}
public boolean isProtected() {
return false;
}
public boolean isPublic() {
return false;
}
public boolean isStatic() {
return false;
}
public boolean isSynthetic() {
return false;
}
@Override
public JavaClassInstanceOf instanceOf() {
return JavaClassInstanceOf.OXM_JAXB_ELEMENT_IMPL;
}
public JavaAnnotation getAnnotation(JavaClass arg0) {
return null;
}
public Collection getAnnotations() {
return null;
}
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0) {
return null;
}
public Collection getDeclaredAnnotations() {
return null;
}
private static final String JAVAX_XML_BIND_JAXBELEMENT = "javax.xml.bind.JAXBElement";
}