Examples of Property


Examples of netflix.adminresources.resources.model.Property

                if (maskedResources.contains(key)) {
                    value = MaskedResourceHelper.MASKED_PROPERTY_VALUE;
                } else {
                    value = configInstance.getProperty(key);
                }
                Property property = new Property(key, value.toString(), null);
                properties.add(property);
            } catch (Exception e) {
                LOG.info("Exception fetching property value for key " + key, e);
            }
View Full Code Here

Examples of no.priv.garshol.duke.Property

  }

  @Test
  public void canAddCustomComparator() {
    GeneticConfiguration conf = new GeneticConfiguration(config1);     
  Property aspectProp = new PropertyImpl(propName, null, 0.5, 0.5);
  List<Comparator> compList = new ArrayList<Comparator>();
  compList.add(comparator);
  ComparatorAspect aspect = new ComparatorAspect(aspectProp, compList);
 
  aspect.setRandomly(conf);
 
  Property updatedProp = config1.getPropertyByName(propName);
  Comparator randomComparator = updatedProp.getComparator();
    assertTrue("should have custom comparator set, but has : " + randomComparator.getClass(), randomComparator.equals(comparator));
  }
View Full Code Here

Examples of nsf.playground.extension.Endpoints.Property

      if(cats!=null) {
        for(int j=0; j<cats.length; j++) {
          Property[] props = cats[j].getProperties();
          if(props!=null) {
            for(int k=0; k<props.length; k++) {
              Property p = props[k];
              env.putField(p.getName(), StringUtil.trim(d.getItemValueString(p.getName())));
            }
          }
        }
      }
    }
View Full Code Here

Examples of nz.govt.natlib.meta.ui.tree.Property

            : "simple";
      }

      // check the parent
      Property[] props = rootContext.getProperties();
      Property prop = null;
      for (int i = 0; i < props.length; i++) {
        if (props[i].getName().toLowerCase().equals(
            property.toLowerCase())) {
          prop = props[i];
          break;
View Full Code Here

Examples of oracle.security.idm.Property

                userProfile = user.getUserProfile();
                PropertySet propSet = userProfile.getAllUserProperties();

                Iterator it = propSet.getAll();
                while (it.hasNext()) {
                    Property prop = (Property)it.next();
                    this.attributes =
                            this.attributes + "property: " + prop.getName();
                    Iterator it2 = prop.getValues().iterator();
                    while (it2.hasNext()) {
                        Object val = it2.next();
                        if ( prop.getName().equalsIgnoreCase(ldapAccountExpiresAttribute) ||
                             prop.getName().equalsIgnoreCase(ldapLastLogonAttribute) ||
                             prop.getName().equalsIgnoreCase(ldapPwdLastSetAttribute) ){
                       
                            long adTime = Long.parseLong(val.toString());
                            long javaTime = adTime - 0x19db1ded53e8000L;
                            javaTime /= 10000L;
                            Date day = new Date(javaTime);
View Full Code Here

Examples of org.activiti.designer.integration.servicetask.annotation.Property

          previousAnchor = labelLong;
        }

        for (final FieldInfo fieldInfo : fieldInfoObjects) {

          final Property property = fieldInfo.getPropertyAnnotation();

          Control createdControl = null;
          CustomPropertyField createdCustomPropertyField = null;

          switch (property.type()) {

          case TEXT:
            createdCustomPropertyField = new CustomPropertyTextField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          case MULTILINE_TEXT:
            createdCustomPropertyField = new CustomPropertyMultilineTextField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            data.height = 80;
            createdControl.setLayoutData(data);
            break;

          case PERIOD:
            createdCustomPropertyField = new CustomPropertyPeriodField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          case BOOLEAN_CHOICE:
            createdCustomPropertyField = new CustomPropertyBooleanChoiceField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          case COMBOBOX_CHOICE:
            createdCustomPropertyField = new CustomPropertyComboboxChoiceField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          case RADIO_CHOICE:
            createdCustomPropertyField = new CustomPropertyRadioChoiceField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          case DATE_PICKER:
            createdCustomPropertyField = new CustomPropertyDatePickerField(this, serviceTask, fieldInfo.getField());
            createdControl = createdCustomPropertyField.render(workParent, factory, listener);
            data = new FormData();
            data.top = new FormAttachment(previousAnchor, VSPACE);
            data.left = new FormAttachment(0, LABEL_COLUMN_WIDTH);
            data.right = new FormAttachment(100, -HELP_COLUMN_WIDTH);
            createdControl.setLayoutData(data);
            break;

          }

          customPropertyFields.add(createdCustomPropertyField);

          previousAnchor = createdControl;

          // Create a label for the field
          String displayName = property.displayName();
          if (StringUtils.isBlank(property.displayName())) {
            displayName = fieldInfo.getFieldName();
          }

          if (property.required()) {
            displayName += PROPERTY_REQUIRED_DISPLAY;
          }

          displayName += ": ";

          final CLabel propertyLabel = factory.createCLabel(workParent, displayName); //$NON-NLS-1$
          data = new FormData();
          data.top = new FormAttachment(createdControl, 0, SWT.TOP);
          data.left = new FormAttachment(0, 0);
          data.right = new FormAttachment(createdControl, -HSPACE);
          propertyLabel.setLayoutData(data);

          // Create a help button for the field
          final Help help = fieldInfo.getHelpAnnotation();
          if (help != null) {
            final Button propertyHelp = factory.createButton(workParent, "", SWT.BUTTON1);
            propertyHelp.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_LCL_LINKTO_HELP));

            // create a tooltip
            final ToolTip tooltip = new FormToolTip(propertyHelp, String.format("Help for field %s",
                    property.displayName().equals("") ? fieldInfo.getFieldName() : property.displayName()), help.displayHelpShort(), help.displayHelpLong());
            tooltip.setHideOnMouseDown(false);

            data = new FormData();
            data.top = new FormAttachment(createdControl, 0, SWT.TOP);
            data.left = new FormAttachment(createdControl, 0);
View Full Code Here

Examples of org.adamtacy.client.ui.effects.impl.css.Property

   * @param start
   * @param end
   */
  protected void registerProperties(Rule start, Rule end, Property replaceStart, Property replaceEnd) {
    propertyPairs = new Vector<PropertyPair>();
    Property entryStart;
    Property entryEnd;
    boolean replacedStart = false;
    boolean replacedEnd = false;
    // Since we are interested in end properties, iterate over them.
    for (Iterator<String> it = end.getProperties().keySet().iterator(); it.hasNext();) {
      // Get the property name
View Full Code Here

Examples of org.andromda.core.configuration.Property

     */
    public void testTemplateMerging()
        throws Exception
    {
        final String packagePath = this.getClass().getPackage().getName().replace('.', '/');
        Property mergeMappings = new Property();
        URL mergeMappingsUri = VelocityTemplateEngineTest.class.getResource(
            "/" + packagePath + "/merge-mappings.xml");
        assertNotNull(mergeMappingsUri);
        mergeMappings.setName(NamespaceProperties.MERGE_MAPPINGS_URI);
        mergeMappings.setValue(mergeMappingsUri.toString());
        final String namespaceName = "test-namespace";
        final Namespace namespace = new Namespace();
        namespace.setName(namespaceName);
        namespace.addProperty(mergeMappings);
        Namespaces.instance().addNamespace(namespace);
View Full Code Here

Examples of org.apache.accumulo.core.conf.Property

    AccumuloConfiguration conf = Monitor.getSystemConfiguration();
    String principal = conf.get(Property.TRACE_USER);
    AuthenticationToken at;
    Map<String,String> loginMap = conf.getAllPropertiesWithPrefix(Property.TRACE_TOKEN_PROPERTY_PREFIX);
    if (loginMap.isEmpty()) {
      Property p = Property.TRACE_PASSWORD;
      at = new PasswordToken(conf.get(p).getBytes(Constants.UTF8));
    } else {
      Properties props = new Properties();
      int prefixLength = Property.TRACE_TOKEN_PROPERTY_PREFIX.getKey().length() + 1;
      for (Entry<String,String> entry : loginMap.entrySet()) {
View Full Code Here

Examples of org.apache.agila.bpel.engine.priv.core.definition.Property

          Iterator properties = rootElement.elementIterator("property");
          while (properties.hasNext()) {
            Element e = (Element) properties.next();
            String name = e.valueOf("@name");
            if (addedProperty.containsKey(name) == false) {
              Property prop = ProcessFactory.addProperty(tp, name, e.valueOf("@type"));
                    addedProperty.put(name, prop);
            }
          }
          Iterator propertyAlias = rootElement.elementIterator("propertyAlias");
            while (propertyAlias.hasNext()) {
                Element e = (Element) propertyAlias.next();
                String propertyName = e.valueOf("@propertyName");

                XPath xpathSelector = DocumentHelper.createXPath("//*/defaultNS:property[@name=\"" + propertyName + "\"]");
                HashMap nsMap = new HashMap(1);
                nsMap.put("defaultNS", BPEL_NS);
                xpathSelector.setNamespaceURIs(nsMap);
                Node propNode = xpathSelector.selectSingleNode(doc);

                Property prop = (Property) addedProperty.get(propertyName);
                if (propNode != null && prop == null) {
                    prop = ProcessFactory.addProperty(tp,
                            propertyName, propNode.valueOf("@type"));
                    addedProperty.put(propertyName, prop);
                }
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.