Examples of Entity


Examples of com.noelios.restlet.local.Entity

        return this.fullName;
    }

    @Override
    public Entity getParent() {
        Entity result = null;
        int index = this.fullName.lastIndexOf("/");

        if (index != -1) {
            result = new ServletWarEntity(getServletContext(), this.fullName
                    .substring(0, index + 1));
View Full Code Here

Examples of com.pointcliki.core.Entity

    fDispatcher.dispatchEvent(type, event);
    // Iterate through children
    Iterator<Entity> it = fChildren.descendingIterator();
    boolean clickThrough = true;
    while (it.hasNext()) {
      Entity e = it.next();
      // Ensure we haven't cleaned up this entity
      if (id() == -1) return;
      if (e.id() == -1) continue;
      // Try
      if (e instanceof UIEntity) {
        UIEntity u = (UIEntity) e;
       
        Vector2f pos = new Vector2f(local.x - u.position().x, local.y - u.position().y);
View Full Code Here

Examples of com.sk89q.worldedit.entity.Entity

    }

    @Nullable
    @Override
    public Entity createEntity(Location location, BaseEntity state) {
        Entity entity = super.createEntity(location, state);
        if (state != null) {
            changeSet.add(new EntityCreate(location, state, entity));
        }
        return entity;
    }
View Full Code Here

Examples of com.splunk.Entity

    }

    // Implement createSheet directly in order to dynamically construct
    // based on the contents of the stanza.
    @Override protected Sheet createSheet() {
        Entity entity = (Entity)value;
        Sheet.Set props = Sheet.createPropertiesSet();
        for (String key : entity.keySet()) {
            if (key.equals("eai:acl") || key.equals("eai:attributes"))
                continue;
            props.put(new StanzaProperty(entity, key));
        }
        Sheet sheet = Sheet.createDefault();
View Full Code Here

Examples of com.sun.xml.internal.stream.Entity

            if(name != null){
                if(fScanner.foundBuiltInRefs)
                    return fScanner.getCharacterData().toString();

                XMLEntityStorage entityStore = fEntityManager.getEntityStore();
                Entity en = entityStore.getEntity(name);
                if(en == null)
                    return null;
                if(en.isExternal())
                    return ((Entity.ExternalEntity)en).entityLocation.getExpandedSystemId();
                else
                    return ((Entity.InternalEntity)en).text;
            }else
                return null;
View Full Code Here

Examples of com.twitter.Extractor.Entity

    String expected = "Url: www.twitter.com <a href=\"http://www.twitter.com\">http://www.twitter.com</a>";
    assertAutolink(expected, linker.autoLinkURLs(tweet));
  }

  public void testURLEntities() {
    Entity entity = new Entity(0, 19, "http://t.co/0JG5Mcq", Entity.Type.URL);
    entity.setDisplayURL("blog.twitter.com/2011/05/twitte…");
    entity.setExpandedURL("http://blog.twitter.com/2011/05/twitter-for-mac-update.html");
    List<Entity> entities = new ArrayList<Entity>();
    entities.add(entity);
    String tweet = "http://t.co/0JG5Mcq";
    String expected = "<a href=\"http://t.co/0JG5Mcq\" rel=\"nofollow\"><span class='tco-ellipsis'><span style='position:absolute;left:-9999px;'>&nbsp;</span></span><span style='position:absolute;left:-9999px;'>http://</span><span class='js-display-url'>blog.twitter.com/2011/05/twitte</span><span style='position:absolute;left:-9999px;'>r-for-mac-update.html</span><span class='tco-ellipsis'><span style='position:absolute;left:-9999px;'>&nbsp;</span>…</span></a>";
View Full Code Here

Examples of com.xiaoleilu.hutool.db.Entity

   * @param rs 数据集
   * @return 每一行的Map
   * @throws SQLException
   */
  public static Entity handleRow(int columnCount, ResultSetMetaData meta, ResultSet rs) throws SQLException {
    final Entity row = Entity.create(meta.getTableName(1));
    String columnLabel;
    for (int i = 1; i <= columnCount; i++) {
      columnLabel = meta.getColumnLabel(i);
      row.put(columnLabel, rs.getObject(columnLabel));
    }
    return row;
  }
View Full Code Here

Examples of com.zaranux.crypto.abe.kp.Entity

    byte[] data = null; //getData(10);

    long t1 , t2;
    DataObject d;
    String ePath = "/";
    Entity e = null;
    for(int j =0 ; j< 7; j++)
    {
      if(j==0)
        e = root;
      else
View Full Code Here

Examples of com.zeroqualitygames.spaceinvaders.entity.Entity

    if (menu != null) {
      menu.tick();
    }
    else {
      for (int i = 0; i < entities.size(); i++) {
        Entity e = entities.get(i);
        if (e.x + e.width > Game.WIDTH || e.x < 0) {
          reverse = true;
        }
         
      }
     
      if (reverse) {
       
        for (int i = 0; i < entities.size(); i++) {
          Entity e = entities.get(i);
          if (e instanceof Alien)
            ((Alien) e).reverse();
        }
        reverse = false;
      }
 
     
      for (int i = 0; i < entities.size(); i++) {
        Entity e = entities.get(i);
        e.tick();
       
        if (reverse && e instanceof Alien) {
          ((Alien) e).reverse();
        }
       
View Full Code Here

Examples of cross.reputation.model.Entity

    }
    Resource repObjResource = reputationObject.getResource();
    if(!repObjResource.hasProperty(RDF.type, JenaVocabulary.reputationObject)) {
      repObjResource.addProperty(RDF.type, JenaVocabulary.reputationObject);
    }
    Entity finalOwner = getFinalOwner(null, null, reputationObject,
          owner, true);
    if(finalOwner != null) {     
      Property property = model.createProperty(reputationParser
           .getRiNamespace(), "owner");
      Statement statement = repObjResource.getProperty(property);
      if(statement == null) {
        repObjResource.addProperty(property, finalOwner.getResource());
      } else {
        statement.changeObject(finalOwner.getResource());
      }
    }
    Property property = model.createProperty(reputationParser
         .getRiNamespace(), "fromCommunity");
    Statement statement = repObjResource.getProperty(property);
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.