当前位置: 首页>>代码示例>>Java>>正文


Java ValueTransient.YES属性代码示例

本文整理汇总了Java中org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient.YES属性的典型用法代码示例。如果您正苦于以下问题:Java ValueTransient.YES属性的具体用法?Java ValueTransient.YES怎么用?Java ValueTransient.YES使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient的用法示例。


在下文中一共展示了ValueTransient.YES属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: sequence_Card

/**
 * Contexts:
 *     Card returns Card
 *
 * Constraint:
 *     (count=INT name=NAMESTRING setNr=INT set=NAMESTRING)
 */
protected void sequence_Card(ISerializationContext context, Card semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__COUNT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__COUNT));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__NAME));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__SET_NR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__SET_NR));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__SET) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__SET));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getCardAccess().getCountINTTerminalRuleCall_0_0(), semanticObject.getCount());
	feeder.accept(grammarAccess.getCardAccess().getNameNAMESTRINGParserRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getCardAccess().getSetNrINTTerminalRuleCall_2_0(), semanticObject.getSetNr());
	feeder.accept(grammarAccess.getCardAccess().getSetNAMESTRINGParserRuleCall_3_0(), semanticObject.getSet());
	feeder.finish();
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:25,代码来源:PkmntcgoSemanticSequencer.java

示例2: sequence_Link

/**
 * Contexts:
 *     Link returns Link
 *
 * Constraint:
 *     (name=ID description=Description url=STRING)
 */
protected void sequence_Link(ISerializationContext context, Link semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.LINK__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.LINK__NAME));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.LINK__DESCRIPTION) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.LINK__DESCRIPTION));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.LINK__URL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.LINK__URL));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getLinkAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getLinkAccess().getDescriptionDescriptionParserRuleCall_3_0(), semanticObject.getDescription());
	feeder.accept(grammarAccess.getLinkAccess().getUrlSTRINGTerminalRuleCall_5_0(), semanticObject.getUrl());
	feeder.finish();
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:22,代码来源:MyDslSemanticSequencer.java

示例3: sequence_Button

/**
 * Contexts:
 *     Button returns Button
 *
 * Constraint:
 *     (name=ID title=Description href=STRING)
 */
protected void sequence_Button(ISerializationContext context, Button semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__NAME));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__TITLE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__TITLE));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__HREF) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__HREF));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getButtonAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getButtonAccess().getTitleDescriptionParserRuleCall_3_0(), semanticObject.getTitle());
	feeder.accept(grammarAccess.getButtonAccess().getHrefSTRINGTerminalRuleCall_5_0(), semanticObject.getHref());
	feeder.finish();
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:22,代码来源:MyDslSemanticSequencer.java

示例4: isValueTransient

@Override
public ValueTransient isValueTransient(EObject semanticObject, EStructuralFeature feature) {

	if (feature == OCCIPackage.Literals.ATTRIBUTE__MUTABLE) {
		if (semanticObject.eContainer() instanceof Type || semanticObject.eContainer() instanceof RecordType) {
			if ((boolean)semanticObject.eGet(feature)) {
				return ValueTransient.NO;
			}
		}
	}
	if (feature == OCCIPackage.Literals.RESOURCE__RLINKS) {
		return ValueTransient.YES;
	}
	return super.isValueTransient(semanticObject, feature);
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:15,代码来源:OCCICustomLegacyTransientValueService.java

示例5: sequence_GImportStatement

/**
 * Contexts:
 *     GImportStatement returns GImportStatement
 *
 * Constraint:
 *     importURI=STRING
 */
protected void sequence_GImportStatement(ISerializationContext context, GImportStatement semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GIMPORT_STATEMENT__IMPORT_URI) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GIMPORT_STATEMENT__IMPORT_URI));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getGImportStatementAccess().getImportURISTRINGTerminalRuleCall_1_0(), semanticObject.getImportURI());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:16,代码来源:AbstractGExpressionsSemanticSequencer.java

示例6: sequence_Position_Position

/**
 * Constraint:
 *     name=ID
 *
 * Features:
 *    name[1, 1]
 */
protected void sequence_Position_Position(EObject context, Position semanticObject) {
	if(errorAcceptor != null) {
		if(transientValues.isValueTransient(semanticObject, IOIPackage.Literals.POSITION__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, IOIPackage.Literals.POSITION__NAME));
	}
	INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
	SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
	feeder.accept(grammarAccess.getPositionAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.finish();
}
 
开发者ID:amritbhat786,项目名称:DocIT,代码行数:17,代码来源:AbstractIOISemanticSequencer.java

示例7: sequence_LetIdentifierRef

/**
 * Contexts:
 *     LetIdentifierRef returns IdentifierRef
 *
 * Constraint:
 *     id=[IdentifiableElement|LetAsIdentifier]
 */
protected void sequence_LetIdentifierRef(ISerializationContext context, IdentifierRef semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.IDENTIFIER_REF__ID) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.IDENTIFIER_REF__ID));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getLetIdentifierRefAccess().getIdIdentifiableElementLetAsIdentifierParserRuleCall_0_1(), semanticObject.eGet(N4JSPackage.Literals.IDENTIFIER_REF__ID, false));
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:N4JSSemanticSequencer.java

示例8: sequence_Annotation

/**
 * Contexts:
 *     Annotation returns Annotation
 *
 * Constraint:
 *     (key=STRING value=STRING)
 */
protected void sequence_Annotation(ISerializationContext context, Annotation semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, OCCIPackage.Literals.ANNOTATION__KEY) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, OCCIPackage.Literals.ANNOTATION__KEY));
		if (transientValues.isValueTransient(semanticObject, OCCIPackage.Literals.ANNOTATION__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, OCCIPackage.Literals.ANNOTATION__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getAnnotationAccess().getKeySTRINGTerminalRuleCall_2_0(), semanticObject.getKey());
	feeder.accept(grammarAccess.getAnnotationAccess().getValueSTRINGTerminalRuleCall_4_0(), semanticObject.getValue());
	feeder.finish();
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:19,代码来源:OCCISemanticSequencer.java

示例9: sequence_Description

/**
 * Contexts:
 *     Description returns Description
 *
 * Constraint:
 *     name=STRING
 */
protected void sequence_Description(ISerializationContext context, Description semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.DESCRIPTION__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.DESCRIPTION__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getDescriptionAccess().getNameSTRINGTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.finish();
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:16,代码来源:MyDslSemanticSequencer.java

示例10: sequence_PositionParameterValue

/**
 * Constraint:
 *     value=ValueOperation
 */
protected void sequence_PositionParameterValue(EObject context, PositionParameterValue semanticObject) {
	if(errorAcceptor != null) {
		if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.PARAMETER_VALUE__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.PARAMETER_VALUE__VALUE));
	}
	INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
	SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
	feeder.accept(grammarAccess.getPositionParameterValueAccess().getValueValueOperationParserRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:14,代码来源:KronusSemanticSequencer.java

示例11: sequence_Precondition

/**
 * Contexts:
 *     Precondition returns Precondition
 *
 * Constraint:
 *     action=WebDriverActionCondition
 */
protected void sequence_Precondition(ISerializationContext context, Precondition semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, BromiumPackage.Literals.PRECONDITION__ACTION) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BromiumPackage.Literals.PRECONDITION__ACTION));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getPreconditionAccess().getActionWebDriverActionConditionParserRuleCall_1_0(), semanticObject.getAction());
	feeder.finish();
}
 
开发者ID:hristo-vrigazov,项目名称:bromium,代码行数:16,代码来源:BromiumSemanticSequencer.java

示例12: sequence_WorkingDir

/**
 * Contexts:
 *     WorkingDir returns WorkingDir
 *
 * Constraint:
 *     workingDir=ExistingPath
 */
protected void sequence_WorkingDir(ISerializationContext context, WorkingDir semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.WORKING_DIR__WORKING_DIR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.WORKING_DIR__WORKING_DIR));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getWorkingDirAccess().getWorkingDirExistingPathParserRuleCall_1_0(), semanticObject.getWorkingDir());
	feeder.finish();
}
 
开发者ID:mduft,项目名称:lcdsl,代码行数:16,代码来源:LcDslSemanticSequencer.java

示例13: sequence_TemplateHead

/**
 * Contexts:
 *     TemplateHead returns TemplateSegment
 *
 * Constraint:
 *     rawValue=TEMPLATE_HEAD
 */
protected void sequence_TemplateHead(ISerializationContext context, TemplateSegment semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.TEMPLATE_SEGMENT__RAW_VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.TEMPLATE_SEGMENT__RAW_VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTemplateHeadAccess().getRawValueTEMPLATE_HEADTerminalRuleCall_1_0(), semanticObject.getRawValue());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:N4JSSemanticSequencer.java

示例14: sequence_TypeRefAnnotationArgument

/**
 * Contexts:
 *     AnnotationArgument returns TypeRefAnnotationArgument
 *     TypeRefAnnotationArgument returns TypeRefAnnotationArgument
 *
 * Constraint:
 *     typeRef=TypeRef
 */
protected void sequence_TypeRefAnnotationArgument(ISerializationContext context, TypeRefAnnotationArgument semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.TYPE_REF_ANNOTATION_ARGUMENT__TYPE_REF) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.TYPE_REF_ANNOTATION_ARGUMENT__TYPE_REF));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTypeRefAnnotationArgumentAccess().getTypeRefTypeRefParserRuleCall_0(), semanticObject.getTypeRef());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:17,代码来源:N4JSSemanticSequencer.java

示例15: sequence_BindingIdentifierAsVariableDeclaration

/**
 * Contexts:
 *     BindingIdentifierAsVariableDeclaration<In,Yield> returns VariableDeclaration
 *     BindingIdentifierAsVariableDeclaration<In> returns VariableDeclaration
 *     BindingIdentifierAsVariableDeclaration<Yield> returns VariableDeclaration
 *     BindingIdentifierAsVariableDeclaration returns VariableDeclaration
 *
 * Constraint:
 *     name=BindingIdentifier
 */
protected void sequence_BindingIdentifierAsVariableDeclaration(ISerializationContext context, VariableDeclaration semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.IDENTIFIABLE_ELEMENT__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.IDENTIFIABLE_ELEMENT__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getBindingIdentifierAsVariableDeclarationAccess().getNameBindingIdentifierParserRuleCall_0(), semanticObject.getName());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:19,代码来源:N4JSSemanticSequencer.java


注:本文中的org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient.YES属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。