Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Austrian Association for Software Tool Integration (AASTI) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The AASTI 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.openengsb.core.persistence.internal;
import static java.lang.String.format;
Object indexing internal classes.
public class ObjectInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private String realClass;
    private String location;
    private ArrayList<Stringtypes;
    public ObjectInfo(String realClassString location) {
        this. = realClass;
        this. = location;
         = Lists.newArrayList();
    }
    public void addType(Class<?> type) {
        .add(type.getName());
    }
    public String getLocation() {
        return ;
    }
    public String getRealClass() {
        return ;
    }
    @Override
    public String toString() {
        return format("ObjectInfo with location: %s, root type: %s and all types: %s",
            Arrays.toString(.toArray()));
    }
    public boolean containsClass(Class<?> beanClass) {
        for (String type : ) {
            if (type.equals(beanClass.getName())) {
                return true;
            }
        }
        return false;
    }
    public void setLocation(String location) {
        this. = location;
    }
New to GrepCode? Check out our FAQ X