
org.qipki.reflect.beans.ModuleBean Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2011, Paul Merlin. All Rights Reserved.
*
* 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 org.qipki.reflect.beans;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ModuleBean
{
String name;
List objects = new ArrayList();
List transients = new ArrayList();
List values = new ArrayList();
List entities = new ArrayList();
List services = new ArrayList();
public String getName()
{
return name;
}
public Iterable getObjects()
{
return Collections.unmodifiableCollection( objects );
}
public Iterable getTransients()
{
return Collections.unmodifiableCollection( transients );
}
public Iterable getValues()
{
return Collections.unmodifiableCollection( values );
}
public Iterable getEntities()
{
return Collections.unmodifiableCollection( entities );
}
public Iterable getServices()
{
return Collections.unmodifiableCollection( services );
}
public boolean getHasObjects()
{
return !objects.isEmpty();
}
public boolean getHasTransients()
{
return !transients.isEmpty();
}
public boolean getHasValues()
{
return !values.isEmpty();
}
public boolean getHasEntities()
{
return !entities.isEmpty();
}
public boolean getHasServices()
{
return !services.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy