Examples of CaoNotFoundException


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

Examples of de.mhus.lib.cao.CaoNotFoundException

    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

Examples of de.mhus.lib.cao.CaoNotFoundException

  @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

Examples of de.mhus.lib.cao.CaoNotFoundException

  }

  @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

Examples of de.mhus.lib.cao.CaoNotFoundException

  }

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

Examples of de.mhus.lib.cao.CaoNotFoundException

    throw new CaoNotFoundException(this,name);
  }

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

Examples of de.mhus.lib.cao.CaoNotFoundException

  }

  @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

Examples of de.mhus.lib.cao.CaoNotFoundException

      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

Examples of de.mhus.lib.cao.CaoNotFoundException

      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
Copyright © 2018 www.massapi.com. 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.