coffeepot.bean.wr.reader.ObjectReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coffeepot-bean-wr Show documentation
Show all versions of coffeepot-bean-wr Show documentation
Coffeepot-bean-wr is a simple Java framework for marshalling Java beans to flat file and unmarshal flat file to Java Beans
/*
* Copyright 2015 Jeandeson O. Merelis.
*
* Licensed 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 coffeepot.bean.wr.reader;
/*
* #%L
* coffeepot-bean-wr
* %%
* Copyright (C) 2013 - 2015 Jeandeson O. Merelis
* %%
* Licensed 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.
* #L%
*/
import coffeepot.bean.wr.mapper.Callback;
import coffeepot.bean.wr.mapper.RecordModel;
import coffeepot.bean.wr.mapper.UnresolvedObjectMapperException;
import coffeepot.bean.wr.typeHandler.HandlerParseException;
import java.io.IOException;
import java.util.List;
/**
*
* @author Jeandeson O. Merelis
*/
public interface ObjectReader {
public T parse(Class clazz) throws IOException, UnknownRecordException, HandlerParseException, Exception;
public T parse(Class clazz, String recordGroupId) throws IOException, UnknownRecordException, HandlerParseException, Exception;
public List parseAsListOf(Class clazz) throws IOException, UnknownRecordException, HandlerParseException, Exception;
public List parseAsListOf(Class clazz, String recordGroupId) throws IOException, UnknownRecordException, HandlerParseException, Exception;
public void findLineStartsWith(String s) throws IOException;
public void processUpToTheLineStartsWith(String s);
public void clearMappers();
public int getActualLine();
public Callback getCallback();
public void setCallback(Callback callback);
public Callback getIdResolver();
public void setIdResolver(Callback resolver);
public void createMapper(Class> clazz) throws UnresolvedObjectMapperException, NoSuchFieldException, Exception;
public void createMapper(Class> clazz, String recordGroupId) throws UnresolvedObjectMapperException, NoSuchFieldException, Exception;
public int getVersion();
public void setVersion(int version);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy