Examples of Property


Examples of com.google.storage.onestore.v3.OnestoreEntity.Property

   * @param multiple whether this property has multiple values
   * @param entity the entity to populate
   */
  private static void addPropertyToPb(String name, Object value, boolean indexed, boolean multiple,
      EntityProto entity) {
    Property property = new Property();
    property.setName(name);
    property.setMultiple(multiple);
    PropertyValue newValue = property.getMutableValue();
    if (value != null) {
      Type<?> type = getType(value.getClass());
      Meaning meaning = type.getV3Meaning();
      if (meaning != property.getMeaningEnum()) {
        property.setMeaning(meaning);
      }
      indexed &= type.toV3Value(value, newValue);
    }
    if (!indexed) {
      entity.addRawProperty(property);
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Property

        String BASE = "http://example/" ;
        Model model = ModelFactory.createDefaultModel() ;
        model.setNsPrefix("", BASE) ;
        Resource r1 = model.createResource(BASE+"r1") ;
        Resource r2 = model.createResource(BASE+"r2") ;
        Property p1 = model.createProperty(BASE+"p") ;
        Property p2 = model.createProperty(BASE+"p2") ;
        RDFNode v1 = model.createTypedLiteral("1", XSDDatatype.XSDinteger) ;
        RDFNode v2 = model.createTypedLiteral("2", XSDDatatype.XSDinteger) ;
       
        r1.addProperty(p1, v1).addProperty(p1, v2) ;
        r1.addProperty(p2, v1).addProperty(p2, v2) ;
View Full Code Here

Examples of com.hypnoticocelot.jaxrs.doclet.model.Property

            Type containerOf = parseParameterisedTypeOf(type);
            String containerTypeOf = containerOf == null ? null : translator.typeName(containerOf).value();

            String propertyName = translator.typeName(type).value();
            Property property;
            if (typeClassDoc != null && typeClassDoc.isEnum()) {
                property = new Property(typeClassDoc.enumConstants(), null);
            } else {
                property = new Property(propertyName, null, containerTypeOf);
            }
            elements.put(typeName, property);
        }
        return elements;
    }
View Full Code Here

Examples of com.ibm.ucp.Property

                createComponent("HardwarePlatform");

        // pixeldepth -> BitsPerPixel
        int pixelDepth = getPolicyValueAsInt(device, "pixeldepth", 0);
        if (pixelDepth > 0) {
            Property bitsPerPixelProperty = new Property("BitsPerPixel",
                    new Integer(pixelDepth));
            hardwarePlatformComponent.addProperty(bitsPerPixelProperty);
        }
           
        // rendermode -> ColorCapable
        String renderMode = device.getComputedPolicyValue("rendermode");
        if (renderMode != null) {
            Boolean colorCapable = Boolean.FALSE;
            if ((renderMode.equals("rgb") ||
                    renderMode.equals("pallette")) && pixelDepth > 1) {
                colorCapable = Boolean.TRUE;
            }
            Property colorCapableProperty = new Property("ColorCapable",
                    colorCapable);
            hardwarePlatformComponent.addProperty(colorCapableProperty);
        }
           
        // modelnum -> Model
        String modelNum = device.getComputedPolicyValue("modelnum");
        if (modelNum != null) {
            Property modelProperty = new Property("Model", modelNum);
            hardwarePlatformComponent.addProperty(modelProperty);
        }
           
        // pixelsx,y -> ScreenSize
        int pixelsX = getPolicyValueAsInt(device, "pixelsx", 0);
        int pixelsY = getPolicyValueAsInt(device, "pixelsy", 0);
        if (pixelsX > 0 && pixelsY > 0) {
            Dimension screenSize = new Dimension(pixelsX, pixelsY);
            Property screenSizeProperty = new Property("ScreenSize",
                    screenSize);
            hardwarePlatformComponent.addProperty(screenSizeProperty);
        }
           
        // charactersx,y -> ScreenSizeChar
        Dimension screenSizeChar;
        int charactersX = getPolicyValueAsInt(device, "charactersx", 0);
        int charactersY = getPolicyValueAsInt(device, "charactersy", 0);
        if (charactersX > 0 && charactersY > 0) {
            screenSizeChar = new Dimension(charactersX, charactersY);
            Property screenSizeCharProperty = new Property("ScreenSizeChar",
                    screenSizeChar);
            hardwarePlatformComponent.addProperty(screenSizeCharProperty);
        }
           
        // mfg -> Vendor
        String manufacturer = device.getComputedPolicyValue("mfg");
        if (manufacturer != null) {
            Property vendorProperty = new Property("Vendor", manufacturer);
            hardwarePlatformComponent.addProperty(vendorProperty);
        }

        // HardwarePlatform component is complete, so add it to the Profile.
        profile.addComponent(hardwarePlatformComponent);

        //
        // Component: SoftwarePlatform
        //

        Component softwarePlatformComponent =
                createComponent("SoftwarePlatform");

        // UAProf.CcppAccept -> CcppAccept
        String ccppAccept = device.getComputedPolicyValue("UAProf.CcppAccept");
        if (ccppAccept != null) {
            Set ccppAcceptSet = new HashSet();
            ccppAcceptSet.add(ccppAccept);
            Property ccppAcceptProperty = new Property("CcppAccept",
                    ccppAcceptSet);
            softwarePlatformComponent.addProperty(ccppAcceptProperty);
        }
       
        // SoftwarePlatform component is complete, so add it to the Profile.
        profile.addComponent(softwarePlatformComponent);
       
        //
        // Component: BrowserUA
        //

        Component browserUAComponent =
                createComponent("BrowserUA");

        // brwsrname -> BrowserName
        String brwsrName = device.getComputedPolicyValue("brwsrname");
        if (brwsrName != null) {
            Property browserNameProperty = new Property("BrowserName",
                    brwsrName);
            browserUAComponent.addProperty(browserNameProperty);
        }

        // brwsrvers -> BrowserVersion
        String brwsrVers = device.getComputedPolicyValue("brwsrvers");
        if (brwsrVers != null) {
            Property browserVersionProperty = new Property("BrowserVersion",
                    brwsrVers);
            browserUAComponent.addProperty(browserVersionProperty);
        }

        // BrowserUA component is complete, so add it to the Profile.
        profile.addComponent(browserUAComponent);

        //
        // Component: WapCharacteristics
        //

        Component wapCharacteristicsComponent =
                createComponent("WapCharacteristics");

        // UAProf.WmlVersion -> WmlVersion
        String wmlVersion = device.getComputedPolicyValue("UAProf.WmlVersion");
        if (wmlVersion != null) {
            Set wmlVersionSet = new HashSet();
            wmlVersionSet.add(wmlVersion);
            Property wmlVersionProperty = new Property("WmlVersion",
                    wmlVersionSet);
            wapCharacteristicsComponent.addProperty(wmlVersionProperty);
        }

        // WapCharacteristics component is complete, so add it to the Profile.
View Full Code Here

Examples of com.jidesoft.grid.Property

            final String propertyName = (String) entry.getKey();
            final Object propertyValue = entry.getValue();

            if (!propertyName.equals("class") && !propertyName.equals("name"))
            {
                Property displayProperty = new Property(propertyName, theConfig.getPropertyDescription(propertyName), propertyValue.getClass())
                {
                    /**
           *
           */
          private static final long serialVersionUID = -4650355524853942976L;
View Full Code Here

Examples of com.jms.client.entity.Property

        entity = jpaController.create(entity);
        assertTrue("Entity not created properly", (entity.getId() > 0L));

        final String ASSERT_KEY = "BODY";
        final String ASSERT_BODY = "FIXED BODY VALUE";
        final Property ASSERT_MAP_ITEM = new Property(ASSERT_KEY, ASSERT_BODY, Type.STRING);

        entity.getMapBodyItems().add(ASSERT_MAP_ITEM);
        entity = jpaController.edit(entity);

        int indexOfMapItem = entity.getMapBodyItems().indexOf(ASSERT_MAP_ITEM);
        assertTrue("Entity not found in the collection", (indexOfMapItem > -1));
        Property foundMapItem = entity.getMapBodyItems().get(indexOfMapItem);
        assertEquals("Entity not edited properly", ASSERT_MAP_ITEM, foundMapItem);
    }
View Full Code Here

Examples of com.l2fprod.common.propertysheet.Property

        readFromObject(managedObject);

        PropertyChangeListener listener = new PropertyChangeListener() {
          public void propertyChange(PropertyChangeEvent evt) {
            Property prop = (Property) evt.getSource();
            //System.out.println("WRITE " + prop.getName());
            prop.writeToObject(managedObject);
          }
        };
        addPropertySheetChangeListener(listener);
      }
    }
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.Property

    ActionableDynamicQuery actionableDynamicQuery =
      new UserActionableDynamicQuery() {

      @Override
      protected void addCriteria(DynamicQuery dynamicQuery) {
        Property property = PropertyFactoryUtil.forName("createDate");

        dynamicQuery.add(property.eqProperty("modifiedDate"));
      }

      @Override
      protected void performAction(Object object)
        throws PortalException, SystemException {
View Full Code Here

Examples of com.mojang.authlib.properties.Property

          GameProfile gp = PlayerUtil.getOtherPlayerProfile(strName);
          if (gp == null)
          {
              gp = PlayerUtil.makeOtherPlayerProfile(strName, strUUID);
          }
          gp.getProperties().put("textures", new Property("textures", s1, s2));
          break;
        case C_SEND_OVERWORLD_IMAGE:
            try
            {
                byte[] bytes = (byte[]) this.data.get(0);
View Full Code Here

Examples of com.mysema.query.codegen.Property

                    } else {
                        String name = component.getNodeName();
                        Class<?> clazz = component.getType().getReturnedClass();
                        Type propertyType = getType(pc.getMappedClass(), clazz, name);
                        AnnotatedElement annotated = getAnnotatedElement(pc.getMappedClass(), name);
                        Property property = createProperty(entityType, name, propertyType, annotated);
                        entityType.addProperty(property);
                        // handle component properties
                        EntityType embeddedType = createEmbeddableType(propertyType);
                        while (properties.hasNext()) {
                            handleProperty(embeddedType, clazz, (org.hibernate.mapping.Property) properties.next());
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.