/******************************************************************************* * Copyright (c) 2011, 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.jpa.ui.internal.jpa2; import org.eclipse.jpt.common.core.JptResourceTypeReference; import org.eclipse.jpt.common.utility.internal.model.value.TransformationPropertyValueModel; import org.eclipse.jpt.common.utility.model.value.PropertyValueModel; import org.eclipse.jpt.jpa.core.internal.jpa2.context.orm.GenericOrmXml2_0Definition; public class OrmXml2_0FlagModel extends TransformationPropertyValueModel { public OrmXml2_0FlagModel(PropertyValueModel valueModel) { super(valueModel); } @Override protected Boolean transform_(R ref) { return Boolean.valueOf(ref.getResourceType().isKindOf(GenericOrmXml2_0Definition.instance().getResourceType())); } }