private void collectReturnTypes(ConnectableComponentModel model) { exportedClasses.addAll(collectRelativeClassesAsString(model.getOutput().getType())); exportedClasses.addAll(collectRelativeClassesAsString(model.getOutputAttributes().getType())); }
private void validateMetadataOutputAttributes(ConnectableComponentModel component, MetadataResolverFactory resolverFactory, ProblemsReporter problemsReporter) { if (isVoid(component.getOutputAttributes().getType()) && !(resolverFactory.getOutputAttributesResolver() instanceof NullMetadataResolver) && (!isCollection(component.getOutput().getType()))) { problemsReporter .addError(new Problem(component, format("%s '%s' has an AttributesTypeResolver defined but it doesn't declare any attributes as part of its output.", capitalize(getComponentModelTypeName(component)), component.getName()))); } }
void assertExpectedOutput(ConnectableComponentModel model, MetadataType payloadType, MetadataType attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), payloadType, attributesType); }
void assertExpectedOutput(ConnectableComponentModel model, MetadataType payloadType, Type attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), payloadType, TYPE_LOADER.load(attributesType)); }
void assertExpectedOutput(ConnectableComponentModel model, Type payloadType, Type attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), TYPE_LOADER.load(payloadType), TYPE_LOADER.load(attributesType)); }
private void collectReturnTypes(ConnectableComponentModel model) { exportedClasses.addAll(collectRelativeClassesAsString(model.getOutput().getType())); exportedClasses.addAll(collectRelativeClassesAsString(model.getOutputAttributes().getType())); }
void assertExpectedOutput(ConnectableComponentModel model, MetadataType payloadType, MetadataType attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), payloadType, attributesType); }
private void validateMetadataOutputAttributes(ConnectableComponentModel component, MetadataResolverFactory resolverFactory, ProblemsReporter problemsReporter) { if (isVoid(component.getOutputAttributes().getType()) && !(resolverFactory.getOutputAttributesResolver() instanceof NullMetadataResolver) && (!isCollection(component.getOutput().getType()))) { problemsReporter.addError(new Problem(component, String .format("%s '%s' has an attributes metadata resolver defined but it doesn't set any attributes", getComponentModelTypeName(component), component.getName()))); } }
void assertExpectedOutput(ConnectableComponentModel model, MetadataType payloadType, Type attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), payloadType, TYPE_LOADER.load(attributesType)); }
void assertExpectedOutput(ConnectableComponentModel model, Type payloadType, Type attributesType) { assertExpectedOutput(model.getOutput(), model.getOutputAttributes(), TYPE_LOADER.load(payloadType), TYPE_LOADER.load(attributesType)); }