mbeckerle commented on a change in pull request #651: URL: https://github.com/apache/daffodil/pull/651#discussion_r728172679
########## File path: daffodil-runtime1/src/main/scala/org/apache/daffodil/layers/LayerCompiler.scala ########## @@ -0,0 +1,130 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.daffodil.layers + +import org.apache.daffodil.api.WarnID +import org.apache.daffodil.dpath.NodeInfo.PrimType +import org.apache.daffodil.dsom.ImplementsThrowsOrSavesSDE +import org.apache.daffodil.processors.SequenceRuntimeData +import org.apache.daffodil.processors.VariableRuntimeData +import org.apache.daffodil.processors.charset.BitsCharsetJava +import org.apache.daffodil.processors.charset.BitsCharsetNonByteSize +import org.apache.daffodil.schema.annotation.props.gen.LayerLengthKind +import org.apache.daffodil.schema.annotation.props.gen.LayerLengthUnits +import org.apache.daffodil.xml.NS +import org.apache.daffodil.xml.RefQName + +/** + * Must be implemented by all layers. + * + * These are the classes which must be dynamically loaded in order to add a layer implementation + * to Daffodil. + * + * These instances are NOT serialized as part of a saved processor. The compileLayer method + * is called and the resulting LayerTransformerFactory is the serialized object. + */ +abstract class LayerCompiler(nom: String) { + + def name() = nom Review comment: I was getting errors about name vs. name() due to the type constraint which requires a name() method. This silenced them. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
