blob: 8f209d1f95b62f5d2ac8eed52c43e53338f430f0 [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.context.java.JavaAttributeMappingDefinition;
import org.eclipse.jpt.jaxb.core.internal.context.java.JavaXmlValueMappingDefinition;
import org.eclipse.jpt.jaxb.eclipselink.core.resource.java.ELJaxb;
public class ELJavaXmlValueMappingDefinition
extends JavaXmlValueMappingDefinition {
// singleton
private static final ELJavaXmlValueMappingDefinition INSTANCE =
new ELJavaXmlValueMappingDefinition();
private static final String[] SUPPORTING_ANNOTATION_NAMES =
{
ELJaxb.XML_CDATA };
/**
* Return the singleton.
*/
public static JavaAttributeMappingDefinition instance() {
return INSTANCE;
}
/**
* Enforce singleton usage
*/
protected ELJavaXmlValueMappingDefinition() {
super();
}
@Override
public Iterable<String> getSupportingAnnotationNames() {
return new CompositeIterable<String>(
super.getSupportingAnnotationNames(),
new ArrayIterable<String>(SUPPORTING_ANNOTATION_NAMES));
}
}