X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fbinding%2Fclassfactory%2FTypeClassSubFactory.java;h=1240b9ea29aaeb620f30b463bb7a00634a65c616;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=d0835219a5a0ef8b96f43a7d8e4c69782cad9d0e;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/classfactory/TypeClassSubFactory.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/classfactory/TypeClassSubFactory.java index d0835219a..1240b9ea2 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/classfactory/TypeClassSubFactory.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/classfactory/TypeClassSubFactory.java @@ -1,30 +1,30 @@ -/******************************************************************************* - * Copyright (c) 2007, 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.databoard.binding.classfactory; - -import org.simantics.databoard.binding.error.BindingConstructionException; -import org.simantics.databoard.binding.reflection.BindingRequest; -import org.simantics.databoard.type.Datatype; - -public interface TypeClassSubFactory { - - /** - * Construct class from datatype. The implementation may use mainFactory - * to construct sub-types. Caching results is not necessary nor recommended. - * - * @param mainFactory - * @param type - * @return class description or null - */ - BindingRequest construct(TypeClassFactory mainFactory, Datatype type) throws BindingConstructionException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.databoard.binding.classfactory; + +import org.simantics.databoard.binding.error.BindingConstructionException; +import org.simantics.databoard.binding.reflection.BindingRequest; +import org.simantics.databoard.type.Datatype; + +public interface TypeClassSubFactory { + + /** + * Construct class from datatype. The implementation may use mainFactory + * to construct sub-types. Caching results is not necessary nor recommended. + * + * @param mainFactory + * @param type + * @return class description or null + */ + BindingRequest construct(TypeClassFactory mainFactory, Datatype type) throws BindingConstructionException; + +}