Examples of JavaProperty


Examples of com.netfever.verify.impl.JavaProperty

     
      this.map.put("system." + entry.getKey(), property);     
    }
   
    for (Entry<Object, Object> entry: System.getProperties().entrySet()) {
      property = new JavaProperty();
      property.adapt("java." + entry.getKey(), entry.getValue().toString());
     
      this.map.put("java." + entry.getKey(), property);     
    }     
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaProperty

     * @return the JavaProperty instance for the specified property in this
     * class or <code>null</code> if there is no such property.
     */
    public JavaProperty getJavaProperty(String name)
    {
        JavaProperty javaProperty = getDeclaredJavaProperty(name);
        if (javaProperty == null) {
            // check superclass
            JavaType superclass = getSuperclass();
            if ((superclass != null) &&
                (superclass != PredefinedType.objectType)) {
View Full Code Here

Examples of org.apache.jdo.model.java.JavaProperty

     */
    public synchronized JavaProperty createJavaProperty(
        String name, JavaMethod getter, JavaMethod setter, JavaType type)
        throws ModelFatalException
    {
        JavaProperty javaProperty =
            newJavaPropertyInstance(name, getter, setter, type);
        declaredJavaProperties.put(name, javaProperty);
        return javaProperty;
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaProperty

     * @return the JavaProperty instance for the specified property in this
     * class or <code>null</code> if there is no such property.
     */
    public JavaProperty getJavaProperty(String name)
    {
        JavaProperty javaProperty = getDeclaredJavaProperty(name);
        if (javaProperty == null) {
            // check superclass
            JavaType superclass = getSuperclass();
            if ((superclass != null) &&
                (superclass != PredefinedType.objectType)) {
View Full Code Here

Examples of org.apache.jdo.model.java.JavaProperty

     */
    public synchronized JavaProperty createJavaProperty(
        String name, JavaMethod getter, JavaMethod setter, JavaType type)
        throws ModelFatalException
    {
        JavaProperty javaProperty =
            newJavaPropertyInstance(name, getter, setter, type);
        declaredJavaProperties.put(name, javaProperty);
        return javaProperty;
    }
View Full Code Here

Examples of org.apache.muse.tools.inspector.JavaProperty

   * @return
   *         A wrapped version of the property containing its QName and
   *         corresponding java class.
   */
  private JavaProperty makeJavaProperty(QName property, ResourceInspector inspector) {
    JavaProperty javaProperty = new JavaProperty();
   
    javaProperty.setQName(property);
    javaProperty.setJavaType(inspector.getPropertyType(property));
   
    return javaProperty;
  }
View Full Code Here

Examples of org.apache.muse.tools.inspector.JavaProperty

    indent(code);
    generateOpenBlock(code);
    newLine(code);
   
    for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
      JavaProperty property = (JavaProperty)i.next();
      indent(2,code);
      code.append("new "
        + convertType(QName.class, classInfo)
        + "(NAMESPACE_URI, \""
        + getPropertyName(property, false)
        + "\", PREFIX)");
      if(i.hasNext()) {
        code.append(",");
      }
      newLine(code);
    }
   
    indent(code);
    generateCloseBlock(code);
    statement(";",code);
    newLine(2,code);
   
    indent(code);
    code.append("public "
      + convertType(QName.class, classInfo)
      + "[] getPropertyNames()");
    newLine(code);
   
    indent(code);
    generateOpenBlock(code);
    newLine(code);
   
    indent(2,code);
    code.append("return _PROPERTIES;");
   
    newLine(code);
    indent(code);
    generateCloseBlock(code);
    newLine(2,code);
   
    for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
      JavaProperty property = (JavaProperty)i.next();
      indent(code);
      code.append("private "
        + convertType(property.getJavaType(), classInfo)
        + " _"
        + getPropertyName(property, false)
        + ";");
      newLine(2, code);
    }
View Full Code Here

Examples of org.apache.muse.tools.inspector.JavaProperty

    if(capability.getProperties().size() == 0) {
      return;
    }
   
    for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
      JavaProperty property = (JavaProperty)i.next();
      indent(code);
      code.append("public "
        + convertType(property.getJavaType(), classInfo)
        + " get"
        + getPropertyName(property, true)
        + "()");
     
      if(generateBody) {
        newLine(code);
        indent(code);
        generateOpenBlock(code);
        newLine(code);
       
        indent(2,code);
        statement("return _"
          + getPropertyName(property, false)
          ";",code);
        newLine(code);
       
        indent(code);
        generateCloseBlock(code);
      } else {
        code.append(";");
      }
      newLine(2,code);
     
      indent(code);
      code.append("public void");
      code.append(" set"
        + getPropertyName(property, true)
        + "("
        + convertType(property.getJavaType(), classInfo)
        + " param0)");
     
      if(generateBody) {
        newLine(code);
        indent(code);
View Full Code Here

Examples of org.apache.muse.tools.inspector.JavaProperty

        addImport(parameterTypes[j]);
      }
    }
   
    for(Iterator i = _capability.getProperties().iterator(); i.hasNext(); ) {
      JavaProperty property = (JavaProperty)i.next();
      addImport(property.getJavaType());
    }
  }
View Full Code Here

Examples of org.apache.muse.tools.inspector.JavaProperty

    indent(code);
    generateOpenBlock(code);
    newLine(code);
   
    for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
      JavaProperty property = (JavaProperty)i.next();
      indent(2,code);
      code.append("new "
        + convertType(QName.class, classInfo)
        + "(NAMESPACE_URI, \""
        + getPropertyName(property, false)
        + "\", PREFIX)");
      if(i.hasNext()) {
        code.append(",");
      }
      newLine(code);
    }
   
    indent(code);
    generateCloseBlock(code);
    statement(";",code);
    newLine(2,code);
   
    indent(code);
    code.append("public "
      + convertType(QName.class, classInfo)
      + "[] getPropertyNames()");
    newLine(code);
   
    indent(code);
    generateOpenBlock(code);
    newLine(code);
   
    indent(2,code);
    code.append("return _PROPERTIES;");
   
    newLine(code);
    indent(code);
    generateCloseBlock(code);
    newLine(2,code);
   
    for(Iterator i=capability.getProperties().iterator(); i.hasNext();) {
      JavaProperty property = (JavaProperty)i.next();
      indent(code);
      code.append("private "
        + convertType(property.getJavaType(), classInfo)
        + " _"
        + getPropertyName(property, false)
        + ";");
      newLine(2, code);
    }
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.