當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。