Examples of PropertyInfo


Examples of org.jboss.beans.info.spi.PropertyInfo

   public void setValue(BeanInfo beanInfo, ManagedProperty property, AbstractBeanMetaData attachment, MetaValue value)
   {
      String name = property.getName();
      PropertyMetaData pmd = getExactPropertyMetaData(attachment, name);
      PropertyInfo propertyInfo = beanInfo.getProperty(name);
      if (pmd instanceof AbstractPropertyMetaData)
      {
         AbstractPropertyMetaData apmd = (AbstractPropertyMetaData)pmd;
         apmd.setValue(new AbstractValueMetaData(metaValueFactory.unwrap(value, propertyInfo.getType())));
      }
   }
View Full Code Here

Examples of org.jboss.portal.identity.info.PropertyInfo

         throw new IllegalArgumentException("Property name need to have value");
      }

      HibernateUserImpl dbUser = processUser(user);

      PropertyInfo pi = getProfileInfo().getPropertyInfo(propertyName);

      if (pi == null)
      {
         throw new IdentityException("Cannot find profile information about property: " + propertyName);
      }
View Full Code Here

Examples of org.jboss.services.deployment.metadata.PropertyInfo

         List propertyList = ci.getPropertyInfoList();
         List newList = new ArrayList(propertyList.size());

         for (Iterator i = propertyList.iterator(); i.hasNext();)
         {
            newList.add(new PropertyInfo((PropertyInfo)i.next()));
         }
         return newList;
      }
   }
View Full Code Here

Examples of org.jboss.services.deployment.metadata.PropertyInfo

      if (propertyList.size() > 0)
      {
         vc = new VelocityContext();

         for (Iterator i = propertyList.iterator(); i.hasNext(); ) {
            PropertyInfo pi = (PropertyInfo)i.next();

            String name = pi.getName();
            String type = pi.getType();
            boolean optional = pi.isOptional();
            Object defaultValue = pi.getDefaultValue();

            if (name == null || name.length() == 0 || type == null || type.length() == 0)
               throw new Exception("Null or empty name/type property metadata for template: " + ci.getName());

            Object sentValue = map.get(name);
View Full Code Here

Examples of org.jfree.xml.generator.model.PropertyInfo

    private ClassDescription createClassDescription (final BeanInfo beanInfo, final ClassDescription parent) {
        final PropertyDescriptor[] props = beanInfo.getPropertyDescriptors();
        final ArrayList properties = new ArrayList();
        for (int i = 0; i < props.length; i++) {
            final PropertyDescriptor propertyDescriptor = props[i];
            PropertyInfo pi;
            if (parent != null) {
                pi = parent.getProperty(propertyDescriptor.getName());
                if (pi != null) {
                    // Property already found, don't touch it
//                    Log.info (new Log.SimpleMessage
View Full Code Here

Examples of org.ksoap2.serialization.PropertyInfo

    return createEnvelope(request, AppContext.instance().getUserName(), AppContext.instance().getUserPassword());
  }

  public void addRequestParameter(SoapObject request, String name, Class type, Object value)
  {
    PropertyInfo param = new PropertyInfo();

    param.name = name;
    param.namespace = request.getNamespace();
    param.type = type;
    request.addProperty(param, value);
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo

     
      if ( entityUri == null ) {
        continue;
      }
       
      PropertyInfo entityInfo = new PropertyInfo();
      entityInfo.setUri(entityUri);
      entityInfo.setDomainUri(domainUri);


      // is ontologyUri a prefix of entityUri?
      if ( entityUri.indexOf(ontologyUri) == 0 ) {
        String localName = entityUri.substring(ontologyUri.length());
        localName = localName.replaceAll("^/+", "");
        entityInfo.setLocalName(localName);
      }
      else {
        // use the given entityUri as the local name.
        // Note that the query is made against the ontology, so every entity
        // found there should be included.
        String localName = _getLocalName(entityUri);
        entityInfo.setLocalName(localName);
      }

      if ( entityInfo != null ) {
        _addProps(entityUri, entityInfo, ontModel);
        entities.add(entityInfo);
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo

    }
   
    ExtendedIterator<DatatypeProperty> props = ontModel.listDatatypeProperties();
    while ( props.hasNext() ) {
      DatatypeProperty prop = props.next();
      PropertyInfo entityInfo = _createPropertyInfo(prop, ontologyUri, ontModel);
      if ( entityInfo != null ) {
        entities.add(entityInfo);
      }
    }
   
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo

    }
   
    ExtendedIterator<ObjectProperty> props = ontModel.listObjectProperties();
    while ( props.hasNext() ) {
      ObjectProperty prop = props.next();
      PropertyInfo entityInfo = _createPropertyInfo(prop, ontologyUri, ontModel);
      if ( entityInfo != null ) {
        entities.add(entityInfo);
      }
    }
   
View Full Code Here

Examples of org.mmisw.orrclient.gwt.client.rpc.PropertyInfo

      return null;
    }
    String entityUri = prop.getURI();
    String localName = _getLocalName(entityUri, ontologyUri);
   
    PropertyInfo entityInfo = new PropertyInfo();
    entityInfo.setUri(entityUri);
    entityInfo.setLocalName(localName);

    OntResource domain = null;
    if ( prop instanceof OntProperty ) {
      OntProperty ontProp = (OntProperty) prop;
      domain = ontProp.getDomain();
    }
    if ( domain != null &&  domain.isURIResource() ) {
      String domainUri = domain.getURI();
      entityInfo.setDomainUri(domainUri);
    }

    _addProps(entityUri, entityInfo, ontModel, null);
    return entityInfo;
  }
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.