blob: 0735a5e3bd234e888ed636f4e99fc14d5ed050f5 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 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.eclipselink.core.internal.context.java;
import org.eclipse.jpt.common.utility.internal.iterables.ArrayIterable;
import org.eclipse.jpt.common.utility.internal.iterables.CompositeIterable;
import org.eclipse.jpt.jaxb.core.internal.context.java.JavaXmlAnyAttributeMappingDefinition;
import org.eclipse.jpt.jaxb.eclipselink.core.resource.java.ELJaxb;
public class ELJavaXmlAnyAttributeMappingDefinition
extends JavaXmlAnyAttributeMappingDefinition {
// singleton
private static final ELJavaXmlAnyAttributeMappingDefinition INSTANCE =
new ELJavaXmlAnyAttributeMappingDefinition();
private static final String[] SUPPORTING_ANNOTATION_NAMES =
{
ELJaxb.XML_PATH };
/**
* Return the singleton.
*/
public static ELJavaXmlAnyAttributeMappingDefinition instance() {
return INSTANCE;
}
/**
* Enforce singleton usage
*/
protected ELJavaXmlAnyAttributeMappingDefinition() {
super();
}
@Override
public Iterable<String> getSupportingAnnotationNames() {
return new CompositeIterable<String>(
super.getSupportingAnnotationNames(),
new ArrayIterable<String>(SUPPORTING_ANNOTATION_NAMES));
}
}