Examples of TypeMetadata


Examples of com.buschmais.xo.spi.metadata.type.TypeMetadata

                value = annotatedType.getName();
            }
            label = DynamicLabel.label(value);
            Class<?> usingIndexOf = labelAnnotation.usingIndexedPropertyOf();
            if (!Object.class.equals(usingIndexOf)) {
                TypeMetadata typeMetadata = metadataByType.get(usingIndexOf);
                indexedProperty = typeMetadata.getIndexedProperty();
            }
        }
        return new NodeMetadata(label, indexedProperty);
    }
View Full Code Here

Examples of com.buschmais.xo.spi.metadata.type.TypeMetadata

                value = annotatedType.getName();
            }
            label = DynamicLabel.label(value);
            Class<?> usingIndexOf = labelAnnotation.usingIndexedPropertyOf();
            if (!Object.class.equals(usingIndexOf)) {
                TypeMetadata typeMetadata = metadataByType.get(usingIndexOf);
                indexedProperty = typeMetadata.getIndexedProperty();
            }
        }
        return new NodeMetadata(label, indexedProperty);
    }
View Full Code Here

Examples of com.dilanperera.rapidws.codegen.TypeMetadata

  {
    try
    {
      this.setWSDLDocument(this.getWSDLDocument(localWsdlFile));

      TypeMetadata typeMetadata = this.getTypeMetadata();

      List<Node> operationNodes = this.getWSDLDocument().getOperations();

      for (Node operationNode : operationNodes)
      {
View Full Code Here

Examples of com.dilanperera.rapidws.codegen.TypeMetadata

  protected void generateConfiguration(String localWsdlFile, String outputDirectory)
  {
    try
    {
      this.setWSDLDocument(this.getWSDLDocument(localWsdlFile));
      TypeMetadata typeMetadata = this.getTypeMetadata();

      this.outputServiceName();
      this.outputServiceDescription();
      this.outputServiceClass();
      this.outputServiceOperations();
View Full Code Here

Examples of javax.jdo.metadata.TypeMetadata

    /** test getMetadata with concrete class name*/
    public void testConcreteClassName() {
        pm = getPM();
        String className = "org.apache.jdo.tck.pc.company.PartTimeEmployee";
        TypeMetadata metadata = pmf.getMetadata(className);
        assertNotNull(ASSERTION_FAILED
                + "metadata must not be null for abstract class " + className, metadata);
        Metadata parent = metadata.getParent();
        assertNotNull(ASSERTION_FAILED
                + "parent metadata must not be null for concrete class " + className, parent);
        String name = metadata.getName();
        String packageName = ((PackageMetadata)parent).getName();
        assertEquals(ASSERTION_FAILED
                + "metadata name and class name must match.", className, packageName + "." + name);
    }
View Full Code Here

Examples of javax.jdo.metadata.TypeMetadata

    /** test getMetadata with abstract class name*/
    public void testAbstractClassName() {
        pm = getPM();
        String className = "org.apache.jdo.tck.pc.company.Employee";
        TypeMetadata metadata = pmf.getMetadata(className);
        assertNotNull(ASSERTION_FAILED
                + "metadata must not be null for abstract class " + className, metadata);
        Metadata parent = metadata.getParent();
        assertNotNull(ASSERTION_FAILED
                + "parent metadata must not be null for abstract class " + className, parent);
        String name = metadata.getName();
        String packageName = ((PackageMetadata)parent).getName();
        assertEquals(ASSERTION_FAILED
                + "metadata name and class name must match.", className, packageName + "." + name);
    }
View Full Code Here

Examples of javax.jdo.metadata.TypeMetadata

    /** test getMetadata with invalid class name*/
    public void testInvalidName() {
        pm = getPM();
        String className = "org.apache.jdo.tck.pc.company.Bogus";
        TypeMetadata metadata = pmf.getMetadata(className);
        assertNull(ASSERTION_FAILED
                + "metadata should return null if unknown parameter", metadata);
    }
View Full Code Here

Examples of org.apache.tuscany.sdo.util.metadata.TypeMetaData

      }

      XMLHelper xmlHelper = SDOUtil.createXMLHelper(typeHelper);
      for (Iterator iter = getTypeMetaData().iterator(); iter.hasNext();)
      {
        TypeMetaData metadata = (TypeMetaData)iter.next();
        URL url = getClass().getResource(metadata.getLocation());
        InputStream inputStream = url.openStream();
        XMLDocument xmlDocument = xmlHelper.load(inputStream);
        Types types = (Types)xmlDocument.getRootObject();
        typeHelper.define(types.getTypeList());
      }
View Full Code Here

Examples of org.apache.tuscany.sdo.util.metadata.TypeMetaData

      }

      XMLHelper xmlHelper = SDOUtil.createXMLHelper(typeHelper);
      for (Iterator iter = getTypeMetaData().iterator(); iter.hasNext();)
      {
        TypeMetaData metadata = (TypeMetaData)iter.next();
        URL url = getClass().getResource(metadata.getLocation());
        InputStream inputStream = url.openStream();
        XMLDocument xmlDocument = xmlHelper.load(inputStream);
        Types types = (Types)xmlDocument.getRootObject();
        typeHelper.define(types.getTypeList());
      }
View Full Code Here

Examples of org.cast.cwm.data.ResponseMetadata.TypeMetadata

    IResponseType thisType = getModelObject().getType();
    String typeName = type.getName();
    if (typeName.equals("AUDIO") || typeName.equals("SVG") || typeName.equals("UPLOAD"))
      titleVisible = true;
    if (metadata != null) {
      TypeMetadata typeMD = metadata.getType(thisType);
      if (typeMD != null) {
        if (thisType.getName().equals("SVG") && typeMD.getFragments() != null) {
          // Drawing starters - need to convert to URLs.
          ArrayList<String> urls = new ArrayList<String>(typeMD.getFragments().size());
          for (String frag : typeMD.getFragments()) {
            ResourceReference fragResourceRef = ((IRelativeLinkSource)xmlFile).getRelativeReference(frag);
            String url = RequestCycle.get().urlFor(fragResourceRef).toString();
            if (url != null)
              urls.add(url);
            else
              log.warn("Drawing stamp image does not exist: {}", frag);
          }
          setStarters(urls);
        } else {
          // Sentence starters
          this.setStarters(typeMD.getFragments());
        }
        // Template
        if (typeMD.getTemplates() != null && !typeMD.getTemplates().isEmpty()) {
          String templateRelativePath = typeMD.getTemplates().get(0)// path from xml file
          ResourceReference templateResourceRef = ((IRelativeLinkSource)xmlFile).getRelativeReference(templateRelativePath);
          this.setTemplateURL(RequestCycle.get().urlFor(templateResourceRef).toString());
        }
      }
    }
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.