Package org.apache.commons.lang

Examples of org.apache.commons.lang.NullArgumentException


    return localStileSet;
  }
 
  public static <T extends PublishedInfo> List<LayerInfo> localizeLayers(final List<T> info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
    final List<LayerInfo> localLayerList = new ArrayList<LayerInfo>(info.size());
    final Iterator<LayerInfo> it = localLayerList.iterator();
    while (it.hasNext()) {
      final LayerInfo layer = it.next();
      final LayerInfo localLayer = localizeLayer(layer, catalog);
View Full Code Here


    return localLayerList;
  }
 
  public static LayerInfo localizeLayer(final LayerInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final LayerInfo localObject=catalog.getLayerByName(info.getName());
   
    if (localObject !=null){
      return localObject;
View Full Code Here

    return createdObject;
  }
 
  public static MapInfo localizeMapInfo(final MapInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final MapInfo localObject=catalog.getMapByName(info.getName());
    if (localObject !=null){
      return localObject;
      // else object is modified: continue with localization 
View Full Code Here

    return info;
  }
 
  public static LayerGroupInfo localizeLayerGroup(final LayerGroupInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final LayerGroupInfo localObject=catalog.getLayerGroupByName(info.getName());
   
    if (localObject !=null){
      return localObject;
View Full Code Here

   
  }

  public static StoreInfo localizeStore(final StoreInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    if (info instanceof CoverageStoreInfo) {
      return localizeCoverageStore((CoverageStoreInfo)info, catalog);
    } else if (info instanceof DataStoreInfo) {
      return localizeDataStore((DataStoreInfo)info, catalog);
View Full Code Here

  }
 
  public static DataStoreInfo localizeDataStore(final DataStoreInfo info,
      final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final DataStoreInfo localObject=catalog.getDataStoreByName(info.getWorkspace(),info.getName());
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
   
View Full Code Here

  }
 
  public static WMSStoreInfo localizeWMSStore(final WMSStoreInfo info,
      final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final WMSStoreInfo localObject=catalog.getStoreByName(info.getWorkspace(), info.getName(), WMSStoreInfo.class);
   
    final CatalogBuilder builder = new CatalogBuilder(catalog);
   
View Full Code Here

  }
 
  public static CoverageStoreInfo localizeCoverageStore(final CoverageStoreInfo info,
      final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final CoverageStoreInfo localObject=catalog.getCoverageStoreByName(info.getWorkspace(),info.getName());

    final CatalogBuilder builder = new CatalogBuilder(catalog);
   
View Full Code Here

    return createdObject;
  }
 
  public static ResourceInfo localizeResource(final ResourceInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    if (info instanceof CoverageInfo) {
      // coverage
      return localizeCoverage((CoverageInfo) info, catalog);
     
View Full Code Here

    }
  }
 
  public static WMSLayerInfo localizeWMSLayer(final WMSLayerInfo info, final Catalog catalog) throws IllegalAccessException, InvocationTargetException {
    if (info==null || catalog==null)
      throw new NullArgumentException("Arguments may never be null");
   
    final WMSLayerInfo localObject=catalog.getResourceByName(info.getNamespace(),info.getName(),WMSLayerInfo.class);
    if (localObject !=null){
      return localObject;
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.NullArgumentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.