Package de.mhus.lib.cao

Examples of de.mhus.lib.cao.CaoNotFoundException


  }

  @Override
  public CaoElement queryElement(String name, CaoAccess access,
      String... attributes) throws CaoException {
    throw new CaoNotFoundException(this,name);
  }
View Full Code Here


    return meta.getMap();
  }
 
  @Override
  public String getString(String name) throws CaoException {
    if (!data.containsKey(name)) throw new CaoNotFoundException(getName(),name);
    Object out = data.get(name);
    if (out == null) return null;
    return out.toString();
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public CaoList getList(String name, CaoAccess access, String... attributes)
      throws CaoException {
    Object out = data.get(name);
    if (out == null || ! (out instanceof List) ) throw new CaoNotFoundException(getName(),name);
   
    return new LinkedCaoList(this, (List<CaoElement>) out);
  }
View Full Code Here

  }

  @Override
  public Object getObject(String name, String... attributes)
      throws CaoException {
    if (!data.containsKey(name)) throw new CaoNotFoundException(getName(),name);
    Object out = data.get(name);
    return out;
  }
View Full Code Here

  }

  @Override
  public Object getObject(String name, String... attributes)
      throws CaoException {
    throw new CaoNotFoundException(this,name);
  }
View Full Code Here

    throw new CaoNotFoundException(this,name);
  }

  @Override
  public String getString(String name) throws CaoException {
    throw new CaoNotFoundException(this,name);
  }
View Full Code Here

  }

  @Override
  public Object getObject(String name, String... attributes) throws CaoException {
    CaoMetaDefinition m = meta.getDefinition(name);
    if (m==null) throw new CaoNotFoundException(getId(),name);
    if (m.getType() == TYPE.LIST)
      return getList(name, attributes);
    return getString(name);
  }
View Full Code Here

      for ( IConfig c : getConfig().getConfigBundle("children")) {
        if (ref.equals(c.getExtracted("name"))) {
          return new DbList(parent,c, attributes);
        }
      }
      throw new CaoNotFoundException("child definition not found");
    }
    return new DbList(parent,config,attributes);
  }
View Full Code Here

      for ( IConfig c : getConfig().getConfigBundle("children")) {
        if (ref.equals(c.getExtracted("name"))) {
          return new AdbList(parent,c, attributes, parentObject);
        }
      }
      throw new CaoNotFoundException("child definition not found");
    }
    return new AdbList(parent,config,attributes, parentObject);
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.cao.CaoNotFoundException

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.