Examples of Property


Examples of org.apache.juddi.Property

  @Test
  public void initialContextInfo_Java2XML()
  {
    try {
      List<Property> properties= new ArrayList<Property>();
      Property property1 = new Property(Context.INITIAL_CONTEXT_FACTORY,"value1");
      properties.add(property1);
      Property property2 = new Property(Context.PROVIDER_URL,"value2");
      properties.add(property2);
      InitialContextInfo contextInfo = new InitialContextInfo();
      contextInfo.setProperty(properties);
      JAXBContext jc = JAXBContext.newInstance(InitialContextInfo.class);
      Marshaller m = jc.createMarshaller();
View Full Code Here

Examples of org.apache.juddi.datatype.response.Property

  {
  }

  public RegistryObject unmarshal(Element element)
  {
    Property obj = new Property();

    // Attributes
    String name = element.getAttribute("name");
    if ((name != null) && (name.trim().length() > 0))
      obj.setName(name);

    String value = element.getAttribute("value");
    if ((value != null) && (value.trim().length() > 0))
      obj.setValue(value);

    // Text Node Value
    // {none}

    // Child Elements
View Full Code Here

Examples of org.apache.logging.log4j.core.config.Property

     */
    @Override
    public LogEvent rewrite(final LogEvent source) {
        final Map<String, String> props = new HashMap<String, String>(source.getContextMap());
        for (final Map.Entry<Property, Boolean> entry : properties.entrySet()) {
            final Property prop = entry.getKey();
            props.put(prop.getName(), entry.getValue() ?
                config.getSubst().replace(prop.getValue()) : prop.getValue());
        }

        return new Log4jLogEvent(source.getLoggerName(), source.getMarker(), source.getFQCN(), source.getLevel(),
            source.getMessage(), source.getThrown(), props, source.getContextStack(), source.getThreadName(),
            source.getSource(), source.getMillis());
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.Property

            final Iterator it = converterConfig.getProperties();

            while (it.hasNext())
            {
                final Property property = (Property) it.next();

                try
                {
                    BeanUtils.setProperty(converter, property.getPropertyName(), property.getDefaultValue());
                }
                catch (Throwable th)
                {
                    log.error("Initializing converter : " + converterClass.getName() + " with property : "
                            + property.getPropertyName() + " and value : " + property.getDefaultValue() + " failed.");
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.olingo.odata2.api.edm.provider.Property

    DataServices result = parser.readMetadata(reader, true);

    List<Property> properties = result.getSchemas().get(0).getEntityTypes().get(0).getProperties();
    assertEquals(2, properties.size());

    Property property = getForName(properties, "Id");
    EdmFacets facets = property.getFacets();
    assertEquals(new Integer(Integer.MAX_VALUE), facets.getMaxLength());

    property = getForName(properties, "Name");
    facets = property.getFacets();
    assertEquals(new Integer(Integer.MAX_VALUE), facets.getMaxLength());
  }
View Full Code Here

Examples of org.apache.oozie.tools.workflowgenerator.client.property.Property

    /**
     * Initialize configuration
     */
    private void initConf() {
        configs = new ArrayList<Property>();
        configs.add(new Property("mapred.job.queue.name", ""));

        prepare = new ArrayList<Property>();
        prepare.add(new Property("", ""));

        others = new ArrayList<Property>();
        others.add(new Property("", ""));
    }
View Full Code Here

Examples of org.apache.openejb.jee.Property

                        flag = false;
                        break;
                    }
                }
                if (flag) {
                    Property property = new Property();
                    property.setName(persistenceProperty.getKey());
                    property.setValue(persistenceProperty.getValue());
                    persistenceProperties.add(property);
                }
            }

            if (member != null) {
View Full Code Here

Examples of org.apache.pluto.portalImpl.om.page.Property

            Map map = new HashMap();

            Iterator iterator = this.fragDesc.getProperties().iterator();

            while (iterator.hasNext()) {
                Property property = (Property)iterator.next();

                map.put(property.getName(), property.getValue());
            }

            initParameters = new Parameters(map);
        }
View Full Code Here

Examples of org.apache.poi.hpsf.Property

        b.append("\n" + name + " Property count: " + s.getPropertyCount());

        final Property[] properties = s.getProperties();
        for (int i = 0; i < properties.length; i++)
        {
            final Property p = properties[i];
            final long id = p.getID();
            final long type = p.getType();
            final Object value = p.getValue();
            b.append('\n');
            b.append(name);
            b.append(", Name: ");
            b.append(id);
            b.append(" (");
View Full Code Here

Examples of org.apache.poi.poifs.property.Property

        _entries    = new HashMap();
        Iterator iter = property.getChildren();

        while (iter.hasNext())
        {
            Property child     = ( Property ) iter.next();
            Entry    childNode = null;

            if (child.isDirectory())
            {
                childNode = new DirectoryNode(( DirectoryProperty ) child,
                                              _filesystem, this);
            }
            else
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.