All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.jaxb.javamodel.oxm.OXMJavaConstructorImpl Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*******************************************************************************
 * Copyright (c) 2011, 2014 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 v1.0 and Eclipse Distribution License v. 1.0
 * which accompanies this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * Contributors:
 *     Rick Barkhouse - 2.2 - Initial implementation
 ******************************************************************************/
package org.eclipse.persistence.jaxb.javamodel.oxm;

import java.lang.reflect.Modifier;

import org.eclipse.persistence.jaxb.javamodel.JavaClass;
import org.eclipse.persistence.jaxb.javamodel.JavaConstructor;

/**
 * INTERNAL:
 * 

* Purpose: JavaConstructor implementation used when bootstrapping * a DynamicJAXBContext from XML Bindings. *

* *

* Responsibilities: *

*
    *
  • Provide Constructor information to the JavaModel.
  • *
* * @since EclipseLink 2.2 * * @see org.eclipse.persistence.jaxb.javamodel.JavaConstructor */ public class OXMJavaConstructorImpl implements JavaConstructor { private JavaClass owningClass; /** * Construct a new instance of OXMJavaConstructorImpl. * * @param owner - the JavaClass this constructor belongs to. */ public OXMJavaConstructorImpl(JavaClass owner) { this.owningClass = owner; } public int getModifiers() { return 0; } public String getName() { return null; } public JavaClass getOwningClass() { return this.owningClass; } public JavaClass[] getParameterTypes() { return new JavaClass[] {}; } public boolean isAbstract() { return Modifier.isAbstract(getModifiers()); } public boolean isPrivate() { return Modifier.isPrivate(getModifiers()); } public boolean isProtected() { return Modifier.isProtected(getModifiers()); } public boolean isPublic() { return Modifier.isPublic(getModifiers()); } public boolean isStatic() { return Modifier.isStatic(getModifiers()); } public boolean isFinal() { return Modifier.isFinal(getModifiers()); } /** * Not supported. */ public boolean isSynthetic() { throw new UnsupportedOperationException("isSynthetic"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy