Examples of addMetaData()


Examples of org.apache.oodt.cas.pge.writers.VelocityMetadata.addMetadata()

  public void testCreateConfigFile() throws IOException {
    URL url = this.getClass().getResource("/test-config.vm");
    VelocityConfigFileWriter vcfw = new VelocityConfigFileWriter();
    VelocityMetadata metadata = new VelocityMetadata(new Metadata());
    metadata.addMetadata("name", "Chris");
    metadata.addMetadata("name", "Paul");
    metadata.addMetadata("conference", "ApacheCon");
    File config = File.createTempFile("config", ".out");
    try {
      vcfw.generateFile(config.toString(), metadata, LOG, url.getFile());
View Full Code Here

Examples of org.apache.openjpa.meta.MetaDataRepository.addMetaData()

            // if access not specified and access was specified at
            // the system level, use the system default (which may
            // be UNKNOWN)
            if (accessCode == AccessCode.UNKNOWN)
                accessCode = _access;
            meta = repos.addMetaData(_cls, accessCode, metaDataComplete);
            FieldMetaData[] fmds = meta.getFields();
            if (metaDataComplete) {
                for (int i = 0; i < fmds.length; i++) {
                    fmds[i].setExplicit(true);
                }
View Full Code Here

Examples of org.apache.openjpa.meta.MetaDataRepository.addMetaData()

            // if access not specified and access was specified at
            // the system level, use the system default (which may
            // be UNKNOWN)
            if (accessCode == AccessCode.UNKNOWN)
                accessCode = _access;
            meta = repos.addMetaData(_cls, accessCode, metaDataComplete);
            FieldMetaData[] fmds = meta.getFields();
            if (metaDataComplete) {
                for (int i = 0; i < fmds.length; i++) {
                    fmds[i].setExplicit(true);
                }
View Full Code Here

Examples of org.apache.openjpa.meta.MetaDataRepository.addMetaData()

        }

        if (meta == null) {
            // add metadata for this type
            int access = toAccessType(attrs.getValue("access"), defaultAccess);
            meta = repos.addMetaData(_cls, access);
            meta.setEnvClassLoader(_envLoader);
            meta.setSourceMode(MODE_NONE);

            // parse annotations first so XML overrides them
            if (_parser != null &&
View Full Code Here

Examples of org.apache.uima.resource.CasManager.addMetaData()

  private void registerTypeSystemsWithCasManager() throws Exception {
    CasManager manager= this.cpeFactory.getResourceManager().getCasManager();
   
    ProcessingResourceMetaData crMetaData = collectionReader.getProcessingResourceMetaData();
    if (crMetaData != null) {
      manager.addMetaData(crMetaData);
    }
    if (collectionReader instanceof CollectionReader) {
      CasInitializer casIni = ((CollectionReader) collectionReader).getCasInitializer();
      if (casIni != null && casIni.getProcessingResourceMetaData() != null) {
        manager.addMetaData(casIni.getProcessingResourceMetaData());
View Full Code Here

Examples of org.drools.core.factmodel.ClassDefinition.addMetaData()

                                    annotationName + ": " +
                                    nsme.getMessage() + ";"));
                }
            }
            if (annotation == null || annotation == Role.class) {
                def.addMetaData(annotationName, typeDescr.getAnnotation(annotationName).getSingleValue());
            }
        }

        // add enum literals, if appropriate
        if (type.getKind() == TypeDeclaration.Kind.ENUM) {
View Full Code Here

Examples of org.drools.core.factmodel.ClassDefinition.addMetaData()

                                                                        annotationName + ": " +
                                                                        nsme.getMessage() + ";" ) );
                }
            }
            if (annotation == null || annotation == Role.class) {
                def.addMetaData( annotationName, typeDescr.getAnnotation( annotationName ).getSingleValue() );
            }
        }

        // add enum literals, if appropriate
        if ( type.getKind() == TypeDeclaration.Kind.ENUM ) {
View Full Code Here

Examples of org.drools.core.factmodel.FieldDefinition.addMetaData()

                                                                             "  - undefined property in @annotation " +
                                                                             annotationName + ": " + nsme.getMessage() + ";" ) );
                    }
                }
                if (annotation == null || annotation == Key.class || annotation == Position.class) {
                    fieldDef.addMetaData(annotationName, field.getAnnotation(annotationName).getSingleValue());
                }
            }

            queue.add(fieldDef);
View Full Code Here

Examples of org.drools.core.factmodel.FieldDefinition.addMetaData()

                                            "  - undefined property in @annotation " +
                                            annotationName + ": " + nsme.getMessage() + ";"));
                        }
                    }
                    if (annotation == null || annotation == Key.class || annotation == Position.class) {
                        fieldDef.addMetaData(annotationName, field.getAnnotation(annotationName).getSingleValue());
                    }
                }

                queue.add(fieldDef);
            } catch (ClassNotFoundException cnfe) {
View Full Code Here

Examples of org.drools.core.factmodel.FieldDefinition.addMetaData()

                                                                                "  - undefined property in @annotation " +
                                                                                annotationName + ": " + nsme.getMessage() + ";" ) );
                        }
                    }
                    if (annotation == null || annotation == Key.class || annotation == Position.class) {
                        fieldDef.addMetaData( annotationName, field.getAnnotation( annotationName ).getSingleValue() );
                    }
                }

                queue.add( fieldDef );
            } catch ( ClassNotFoundException cnfe ) {
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.