Examples of Property


Examples of org.wso2.carbon.cep.core.Property

/**
* This class will help to build Property object from a given OMElement
*/
public class PropertyHelper {
    public static Property fromOM(OMElement propertyElement) {
        Property property = new Property();
        String name = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_NAME));
        String xpath = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_XPATH));
        String type = propertyElement.getAttributeValue(new QName(CEPConstants.CEP_CONF_ELE_TYPE));
        String xmlFieldName = propertyElement.getAttributeValue(new QName(CEPConstants.CE_CONF_ELE_XML_FIELD_NAME));
        String xmlFieldType = propertyElement.getAttributeValue(new QName(CEPConstants.CE_CONF_ELE_XML_FIELD_TYPE));

        property.setName(name);
        property.setXpath(xpath);
        property.setType(type);
        property.setXmlFieldName(xmlFieldName);
        property.setXmlFieldType(xmlFieldType);

        return property;
    }
View Full Code Here

Examples of org.xmlBlaster.util.property.Property

      if (property == null) {
         synchronized (Property.class) {
            if (property == null) {
               try {
                  if (loadPropFile)
                     property = new Property("xmlBlaster.properties", true, args, doReplace);
                  else
                     property = new Property(null, true, args, doReplace);
               }
               catch (XmlBlasterException e) {
                  errorText = ME + ": Error in xmlBlaster.properties: " + e.toString();
                  System.err.println(errorText);
                  try {
                     property = new Property(null, true, args, doReplace)// initialize without properties file!
                  }
                  catch (XmlBlasterException e2) {
                     errorText = ME + " ERROR: " + e2.toString();
                     System.err.println(errorText);
                     try {
                        property = new Property(null, true, new String[0], doReplace)// initialize without args
                     }
                     catch (XmlBlasterException e3) {
                        errorText = ME + " ERROR: " + e3.toString();
                        System.err.println(errorText);
                        e3.printStackTrace();
View Full Code Here

Examples of org.xwiki.rest.model.jaxb.Property

    @Test
    public void testPOSTObject() throws Exception
    {
        final String TAG_VALUE = "TAG";

        Property property = new Property();
        property.setName("tags");
        property.setValue(TAG_VALUE);
        Object object = objectFactory.createObject();
        object.setClassName("XWiki.TagClass");
        object.getProperties().add(property);

        PostMethod postMethod =
View Full Code Here

Examples of org.yaml.snakeyaml.introspector.Property

        }
       
        @Override
        public Property getProperty(Class<? extends Object> type, String name) throws IntrospectionException
        {
            Property result = super.getProperty(type, name);
            if (result instanceof MissingProperty)
            {
                missingProperties.add(result.getName());
            }
            return result;
        }
View Full Code Here

Examples of org.zeroexchange.model.resource.property.Property

        targetCategory.setAlias(sourceCategory.getAlias() != null ? sourceCategory.getAlias() :
            parent != null ? parent.getAlias() : null);
        Collection<XProperty> sourceProperties = sourceCategory.getProperties();
        Collection<Property> targetProperties = targetCategory.getProperties();
        for(XProperty sourceProperty: sourceProperties) {
            Property targetProperty = new Property();
            targetProperty.setCategory(targetCategory);
            targetProperty.setName(sourceProperty.getName());
            PropertyType propertyType = (PropertyType) propertyTypeDAO.getById(sourceProperty.getPropertyType());
            if(propertyType == null) {
                throw new BusinessLogicException("Property type is unknown: '" + sourceProperty.getPropertyType() + "'");
            }
            targetProperty.setPropertyType(propertyType);
            targetProperty.setDictionary(sourceProperty.getDictonary());
           
            //Setup property titles
            PropertyStrings propertyStrings = new PropertyStrings();
            propertyStrings.setTarget(targetProperty);
            for(XLocalizedString title: sourceProperty.getTitles()) {
                LocalizationUtils.setValue(propertyStrings, title.getValue(), title.getLang());
            }
            targetProperty.setTitles(propertyStrings);
            targetProperty.setContainerType(0);
            targetProperties.add(targetProperty);
        }
       
        //Setup category titles
        CategoryStrings categoryStrings = new CategoryStrings();
View Full Code Here

Examples of railo.runtime.component.Property

            CommonUtil.createProperty(name.getString(),res.getString("TYPE_NAME")));
      }
     
      // ids
      res = md.getPrimaryKeys(null, null, tableName);
      Property p;
      while(res.next()) {
        name=CommonUtil.createKey(res.getString("COLUMN_NAME"));
        p=(Property) properties.get(name,null);
        if(p!=null) p.getDynamicAttributes().setEL(CommonUtil.FIELDTYPE, "id");
      }
     
      // MUST foreign-key relation
   
    }
View Full Code Here

Examples of rocket.beans.rebind.Property

      final PropertyTag tag = new PropertyTag();
      tag.setElement(element);
      tag.setPlaceHolderResolver(placeHolderResolver);

      final Property property = new Property();
      property.setName(tag.getName());

      final Value value = this.visitConstructorOrPropertyValue(tag.getValue());
      property.setValue(value);

      properties.add(property);
    }

    return properties;
View Full Code Here

Examples of symboltable.Property

        Iterator<Property> it = cons.getProperties();


        while(it.hasNext()){

            Property pr = it.next();

            ExprForASTElement expr = pr.getExprForValue();
            conStr = conStr.append(identMethodBody(consListArgName)).
                            append(".push_back(").
                            append(callToString(expr)).
                            append(");\n");
        }

        conStr = getMethodFooter(conStr);
        conStr.append("\n");
        conStr = getMethodDeclHead(conStr, "string", "toString", consTargetType + " " + consThisName);
        identMethodBody(conStr).append("const string delim = ").append(writerName).append("->getDelim();\n");
        identMethodBody(conStr).append("ostringstream rv;\n");
        it = cons.getProperties();

        Property pr = it.next();
        assert pr.getExprForValue() != null;
        conStr = identMethodBody(conStr).append("rv << ").append(callToString(pr.getExprForValue()));


        while(it.hasNext()){
            assert pr.getExprForValue() != null;
            pr = it.next();
            ExprForASTElement expr = pr.getExprForValue();
            conStr = identMethodBody(conStr.append("\n")).append("      ");
            conStr = conStr.append(" << delim <<").append(callToString(expr));
        }

        conStr.append(";\n");
View Full Code Here

Examples of thredds.catalog2.Property

    assertEquals( wmsService, services.get( 2 ) );

    // Test that Service methods succeed after build.
    List<Property> propList = s.getProperties();
    assertEquals( 2, propList.size() );
    Property prop1 = propList.get( 0 );
    Property prop2 = propList.get( 1 );

    assertEquals( "propName1", prop1.getName() );
    assertEquals( "propName2", prop2.getName() );

    assertEquals( "propValue1", prop1.getValue() );
    assertEquals( "propValue2", prop2.getValue() );
  }
View Full Code Here

Examples of uk.co.o2.json.schema.ObjectSchema.Property

        }

        for (Iterator<String> iterator = rawProperties.fieldNames(); iterator.hasNext();) {
            String fieldName = iterator.next();

            Property property = new Property();
            property.setName(fieldName);
           
            JsonNode nestedSchema = rawProperties.get(fieldName);
            property.setNestedSchema(parse(nestedSchema, schemaLocation));

            JsonNode required = nestedSchema.get("required");
            if (required != null) {
                property.setRequired(required.booleanValue());
            }
           
            schema.getProperties().add(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.