本文整理汇总了Java中org.eclipse.emf.ecore.util.FeatureMapUtil类的典型用法代码示例。如果您正苦于以下问题:Java FeatureMapUtil类的具体用法?Java FeatureMapUtil怎么用?Java FeatureMapUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FeatureMapUtil类属于org.eclipse.emf.ecore.util包,在下文中一共展示了FeatureMapUtil类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getConfigurationData
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
protected Object getConfigurationData ( final HiveConfigurationType configuration )
{
for ( FeatureMap.Entry entry : configuration.getAny () )
{
if ( entry.getValue () instanceof EObject )
{
return entry.getValue ();
}
else if ( FeatureMapUtil.isText ( entry ) )
{
return entry.getValue ();
}
else if ( FeatureMapUtil.isCDATA ( entry ) )
{
return entry.getValue ();
}
}
return null;
}
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:AbstractHiveFactory.java
示例2: getCatalog
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* Creates and returns the catalog representing this particular marketplace
* instance.
*
* @return this marketplace's catalog
*/
private Catalog getCatalog() {
Catalog catalog = MarketplaceFactory.eINSTANCE.createCatalog();
catalog.setTitle(environment.getProperty("marketplace.title"));
catalog.setUrl(marketplaceBaseUrl+"/mpc");
catalog.setIcon(environment.getProperty("marketplace.catalog-icon"));
catalog.setDescription(environment.getProperty("marketplace.description"));
Wizard wizard = MarketplaceFactory.eINSTANCE.createWizard();
wizard.setTitle(environment.getProperty("marketplace.wizard-title"));
wizard.setIcon(environment.getProperty("marketplace.wizard-icon"));
SearchTab st = MarketplaceFactory.eINSTANCE.createSearchTab();
FeatureMapUtil.addText(st.getMixed(), "Search");
st.setEnabled(1);
wizard.setSearchtab(st);
catalog.setWizard(wizard);
return catalog;
}
开发者ID:Itema-as,项目名称:dawn-marketplace-server,代码行数:23,代码来源:MarketplaceDAO.java
示例3: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(BeansPackage.Literals.ABSTRACT_POJOS__GROUP,
FeatureMapUtil.createEntry
(BeansPackage.Literals.ABSTRACT_POJOS__BEAN,
BeansFactory.eINSTANCE.createBean())));
newChildDescriptors.add
(createChildParameter
(BeansPackage.Literals.ABSTRACT_POJOS__GROUP,
FeatureMapUtil.createEntry
(BeansPackage.Literals.ABSTRACT_POJOS__ENUM,
BeansFactory.eINSTANCE.createEnum())));
}
开发者ID:SAP,项目名称:hybris-commerce-eclipse-plugin,代码行数:26,代码来源:AbstractPojosItemProvider.java
示例4: scanNext
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
protected boolean scanNext(EStructuralFeature nextFeature,
ListIterator<Object> nextValuesIterator) {
boolean isFeatureMap = FeatureMapUtil.isFeatureMap(nextFeature);
while (nextValuesIterator.hasNext()) {
Object nextValue = nextValuesIterator.next();
if (isFeatureMap) {
FeatureMap.Entry entry = (FeatureMap.Entry) nextValue;
nextFeature = entry.getEStructuralFeature();
nextValue = entry.getValue();
}
if ((isIncluded(nextFeature) ? nextValue != null
: isIncluded(nextValue))
&& ((index < preparedValues.size() && nextValue == preparedValues
.get(index)) || preparedValues.add(nextValue))) {
valuesIterator = nextValuesIterator;
preparedFeature = nextFeature;
return true;
}
}
return false;
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:27,代码来源:DerivedEObjectEList.java
示例5: scanPrevious
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
protected boolean scanPrevious(EStructuralFeature previousFeature,
ListIterator<Object> previousValuesIterator) {
boolean isFeatureMap = FeatureMapUtil.isFeatureMap(previousFeature);
while (previousValuesIterator.hasPrevious()) {
Object previousValue = previousValuesIterator.previous();
if (isFeatureMap) {
FeatureMap.Entry entry = (FeatureMap.Entry) previousValue;
previousFeature = entry.getEStructuralFeature();
previousValue = entry.getValue();
}
if (index > 0 && previousValue == preparedValues.get(index - 1)) {
valuesIterator = previousValuesIterator;
preparedFeature = previousFeature;
return true;
}
}
return false;
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:23,代码来源:DerivedEObjectEList.java
示例6: eOpenGet
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
public Object eOpenGet(EStructuralFeature eFeature, boolean resolve)
{
EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
if (openFeature != null)
{
if (!FeatureMapUtil.isFeatureMap(openFeature))
{
openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
}
FeatureMap featureMap = (FeatureMap)eGet(openFeature);
return ((FeatureMap.Internal)featureMap).get(eFeature, resolve);
}
else
{
throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid feature");
}
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:18,代码来源:BasicEObjectImpl.java
示例7: eOpenSet
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
public void eOpenSet(EStructuralFeature eFeature, Object newValue)
{
EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
if (openFeature != null)
{
if (!FeatureMapUtil.isFeatureMap(openFeature))
{
openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
}
FeatureMap featureMap = (FeatureMap)eGet(openFeature);
((FeatureMap.Internal)featureMap).set(eFeature, newValue);
}
else
{
throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
}
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:18,代码来源:BasicEObjectImpl.java
示例8: eOpenUnset
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
public void eOpenUnset(EStructuralFeature eFeature)
{
EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
if (openFeature != null)
{
if (!FeatureMapUtil.isFeatureMap(openFeature))
{
openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
}
FeatureMap featureMap = (FeatureMap)eGet(openFeature);
((FeatureMap.Internal)featureMap).unset(eFeature);
}
else
{
throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid changeable feature");
}
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:18,代码来源:BasicEObjectImpl.java
示例9: eOpenIsSet
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
public boolean eOpenIsSet(EStructuralFeature eFeature)
{
EStructuralFeature openFeature = ExtendedMetaData.INSTANCE.getAffiliation(eClass(), eFeature);
if (openFeature != null)
{
if (!FeatureMapUtil.isFeatureMap(openFeature))
{
openFeature = ExtendedMetaData.INSTANCE.getGroup(openFeature);
}
FeatureMap featureMap = (FeatureMap)eGet(openFeature);
return ((FeatureMap.Internal)featureMap).isSet(eFeature);
}
else
{
throw new IllegalArgumentException("The feature '" + eFeature.getName() + "' is not a valid feature");
}
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:18,代码来源:BasicEObjectImpl.java
示例10: getCreateChildText
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
Object childFeature = feature;
Object childObject = child;
if (childFeature instanceof EStructuralFeature && FeatureMapUtil.isFeatureMap((EStructuralFeature)childFeature)) {
FeatureMap.Entry entry = (FeatureMap.Entry)childObject;
childFeature = entry.getEStructuralFeature();
childObject = entry.getValue();
}
boolean qualify =
childFeature == GmlPackage.eINSTANCE.getCoverageFunctionType_GridFunction() ||
childFeature == GmlPackage.eINSTANCE.getDocumentRoot_IndexMap();
if (qualify) {
return getString
("_UI_CreateChild_text2",
new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
}
return super.getCreateChildText(owner, feature, child, selection);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:29,代码来源:CoverageFunctionTypeItemProvider.java
示例11: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
FeatureMapUtil.createEntry
(AppearancePackage.Literals.DOCUMENT_ROOT__GEOREFERENCED_TEXTURE,
AppearanceFactory.eINSTANCE.createGeoreferencedTextureType())));
newChildDescriptors.add
(createChildParameter
(AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
FeatureMapUtil.createEntry
(AppearancePackage.Literals.DOCUMENT_ROOT__PARAMETERIZED_TEXTURE,
AppearanceFactory.eINSTANCE.createParameterizedTextureType())));
newChildDescriptors.add
(createChildParameter
(AppearancePackage.Literals.SURFACE_DATA_PROPERTY_TYPE__SURFACE_DATA_GROUP,
FeatureMapUtil.createEntry
(AppearancePackage.Literals.DOCUMENT_ROOT__X3_DMATERIAL,
AppearanceFactory.eINSTANCE.createX3DMaterialType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:33,代码来源:SurfaceDataPropertyTypeItemProvider.java
示例12: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getControlPointType_PosList(),
GmlFactory.eINSTANCE.createDirectPositionListType()));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getControlPointType_GeometricPositionGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getControlPointType_Pos(),
GmlFactory.eINSTANCE.createDirectPositionType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getControlPointType_GeometricPositionGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getControlPointType_PointProperty(),
GmlFactory.eINSTANCE.createPointPropertyType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:31,代码来源:ControlPointTypeItemProvider.java
示例13: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getOperationRefType_OperationGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_Conversion(),
GmlFactory.eINSTANCE.createConversionType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getOperationRefType_OperationGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_Transformation(),
GmlFactory.eINSTANCE.createTransformationType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:OperationRefTypeItemProvider.java
示例14: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getTriangleType_ExteriorGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getTriangleType_Exterior(),
GmlFactory.eINSTANCE.createAbstractRingPropertyType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getTriangleType_ExteriorGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_OuterBoundaryIs(),
GmlFactory.eINSTANCE.createAbstractRingPropertyType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:TriangleTypeItemProvider.java
示例15: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(TexturedsurfacePackage.Literals.APPEARANCE_PROPERTY_TYPE__APPEARANCE_GROUP,
FeatureMapUtil.createEntry
(TexturedsurfacePackage.Literals.DOCUMENT_ROOT__MATERIAL,
TexturedsurfaceFactory.eINSTANCE.createMaterialType())));
newChildDescriptors.add
(createChildParameter
(TexturedsurfacePackage.Literals.APPEARANCE_PROPERTY_TYPE__APPEARANCE_GROUP,
FeatureMapUtil.createEntry
(TexturedsurfacePackage.Literals.DOCUMENT_ROOT__SIMPLE_TEXTURE,
TexturedsurfaceFactory.eINSTANCE.createSimpleTextureType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:AppearancePropertyTypeItemProvider.java
示例16: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getAbstractGeneralOperationParameterRefType_GeneralOperationParameterGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_OperationParameter(),
GmlFactory.eINSTANCE.createOperationParameterType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getAbstractGeneralOperationParameterRefType_GeneralOperationParameterGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_OperationParameterGroup(),
GmlFactory.eINSTANCE.createOperationParameterGroupType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:AbstractGeneralOperationParameterRefTypeItemProvider.java
示例17: getCreateChildText
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) {
Object childFeature = feature;
Object childObject = child;
if (childFeature instanceof EStructuralFeature && FeatureMapUtil.isFeatureMap((EStructuralFeature)childFeature)) {
FeatureMap.Entry entry = (FeatureMap.Entry)childObject;
childFeature = entry.getEStructuralFeature();
childObject = entry.getValue();
}
boolean qualify =
childFeature == GmlPackage.eINSTANCE.getLineStringSegmentType_PointProperty() ||
childFeature == GmlPackage.eINSTANCE.getLineStringSegmentType_PointRep();
if (qualify) {
return getString
("_UI_CreateChild_text2",
new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) });
}
return super.getCreateChildText(owner, feature, child, selection);
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:29,代码来源:LineStringSegmentTypeItemProvider.java
示例18: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getBoundingShapeType_Envelope(),
GmlFactory.eINSTANCE.createEnvelopeType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getBoundingShapeType_Envelope(),
GmlFactory.eINSTANCE.createEnvelopeWithTimePeriodType())));
newChildDescriptors.add
(createChildParameter
(GmlPackage.eINSTANCE.getBoundingShapeType_EnvelopeGroup(),
FeatureMapUtil.createEntry
(GmlPackage.eINSTANCE.getDocumentRoot_EnvelopeWithTimePeriod(),
GmlFactory.eINSTANCE.createEnvelopeWithTimePeriodType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:33,代码来源:BoundingShapeTypeItemProvider.java
示例19: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(BuildingPackage.Literals.OPENING_PROPERTY_TYPE__OPENING_GROUP,
FeatureMapUtil.createEntry
(BuildingPackage.Literals.DOCUMENT_ROOT__DOOR,
BuildingFactory.eINSTANCE.createDoorType())));
newChildDescriptors.add
(createChildParameter
(BuildingPackage.Literals.OPENING_PROPERTY_TYPE__OPENING_GROUP,
FeatureMapUtil.createEntry
(BuildingPackage.Literals.DOCUMENT_ROOT__WINDOW,
BuildingFactory.eINSTANCE.createWindowType())));
}
开发者ID:markus1978,项目名称:citygml4emf,代码行数:26,代码来源:OpeningPropertyTypeItemProvider.java
示例20: collectNewChildDescriptors
import org.eclipse.emf.ecore.util.FeatureMapUtil; //导入依赖的package包/类
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors ( Collection<Object> newChildDescriptors, Object object )
{
super.collectNewChildDescriptors ( newChildDescriptors, object );
newChildDescriptors.add
( createChildParameter
( ConfigurationPackage.Literals.CUSTOM_EXTRACTOR_TYPE__ANY,
FeatureMapUtil.createEntry
( ConfigurationPackage.Literals.DOCUMENT_ROOT__ROOT,
ConfigurationFactory.eINSTANCE.createRootType () ) ) );
}
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:CustomExtractorTypeItemProvider.java
注:本文中的org.eclipse.emf.ecore.util.FeatureMapUtil类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论