Examples of Metadata


Examples of com.puppetlabs.geppetto.forge.model.Metadata

        UIPlugin plugin = UIPlugin.getInstance();
        String owner = null;
        Diagnostic diag = new Diagnostic();
        for(ExportSpec spec : getExportSpecs(whiteCheckedResources)) {
          try {
            Metadata md = getForge().createFromModuleDirectory(
              spec.getModuleRoot(), false, spec.getFileFilter(), null, diag);
            if(md != null) {
              ModuleName name = md.getName();
              if(owner == null)
                owner = name.getOwner();
              else if(!owner.equals(name.getOwner())) {
                setErrorMessage(plugin.getString("_UI_MultipleModuleOwners"));
                return false;
View Full Code Here

Examples of com.rapidminer.operator.ports.metadata.MetaData

  public ModelCombiner(OperatorDescription description) {
    super(description);
    inputPort.start();
    inputPort.ensureMinimumNumberOfPorts(2);
   
    MetaData met=new MetaData(RatingPredictor.class);
   
    inputPort.getManagedPorts().get(0).addPrecondition(new SimplePrecondition(inputPort.getManagedPorts().get(0), met));
   
    inputPort.getManagedPorts().get(1).addPrecondition(new SimplePrecondition(inputPort.getManagedPorts().get(1), met));
   
    getTransformer().addRule(new GenerateNewMDRule(exampleSetOutput, new MetaData(RatingPredictor.class)) {
     });
  }
View Full Code Here

Examples of com.sissi.io.read.Metadata

  private final Map<String, Class<?>> cached = new HashMap<String, Class<?>>();

  public XMLMapping() {
    super();
    for (Class<?> each : ScanUtil.getClasses(this.loading)) {
      Metadata metadata = each.getAnnotation(Metadata.class);
      if (metadata != null) {
        this.selector.install(metadata.uri(), metadata.localName(), each);
      }
    }
  }
View Full Code Here

Examples of com.sonyericsson.hudson.plugins.metadata.model.Metadata

        assertNotNull(one);
        assertSame(root, one.getParent());
        TreeNodeMetadataValue two = (TreeNodeMetadataValue)one.getChild("two");
        assertNotNull(two);
        assertSame(one, two.getParent());
        Metadata three = two.getChild("three");
        assertNotNull(three);
        assertSame(two, three.getParent());
        assertEquals("value", three.getValue());
        assertEquals("description", three.getDescription());
    }
View Full Code Here

Examples of com.sun.appserv.ha.util.Metadata

            = JxtaReplicationSender.createInstance();
        ReplicationState queryResult = sender.sendReplicationStateQuery(state);
        if(_logger.isLoggable(Level.FINE)) {      
            _logger.fine("JxtaBackingStoreImpl>>findSessionViaBroadcast:queryResult=" + queryResult);                       
        }              
        Metadata result = null;
        String userOrSsoId = null;        
        if(queryResult != null) {
            if(!_suppressLoadAck) {
                //send acknowledgement of load receipt
                //no response to wait for in this case
View Full Code Here

Examples of com.sun.facelets.tag.Metadata

    ruleset.addRule(new MetaRule() {

      @Override
      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (FILTER_METHOD.equals(name)) {
          return new Metadata() {

                        @Override
                        public void applyMetadata(FaceletContext context, Object object) {
              FacesContext facesContext = context.getFacesContext();
             
View Full Code Here

Examples of com.sun.syndication.feed.module.mediarss.types.Metadata

                newMediaItem = new MediaContent(new UrlReference((String) args[0]));
            } catch (URISyntaxException e) {
                throw new CarbonException(e.getMessage());
            }
            newContents[0] = newMediaItem;
            Metadata newMetaData = new Metadata();
            newMediaItem.setMetadata(newMetaData);
            newModule.setMediaContents(newContents);

            newMediaModule = new MediaModule();
            newMediaModule.module = newModule;
View Full Code Here

Examples of com.sun.xml.ws.mex.client.schema.Metadata

    protected static QName[]  doMexRequest(final String wsdlLocation, final String stsURI) throws WSTrustException {

        final QName[] serviceInfo = new QName[2];
        final MetadataClient mexClient = new MetadataClient();

        final Metadata metadata = mexClient.retrieveMetadata(wsdlLocation);

        //this method gives the names of services and the corresponding port details
        if(metadata != null){
            final List<PortInfo> ports = mexClient.getServiceInformation(metadata);
View Full Code Here

Examples of com.volantis.mcs.context.MetaData

        return requestContextMock;
    }

    private Object getMetaData(final String id) {
        MetaData metaData = (MetaData) metaDataMap.get(id);
        if (metaData == null) {
            metaData = new MetaData();
            metaDataMap.put(id, metaData);
        }
        return metaData;
    }
View Full Code Here

Examples of cu.ftpd.filesystem.metadata.Metadata

     */

    private int calculateNukeSize(File nukedDir, HashMap<String, Long> victims) {
        int totalBytesNuked = 0;
        Directory dir = ServiceManager.getServices().getMetadataHandler().getDirectory(nukedDir);
        Metadata metadata;
        Long bytesForUser;
        for (File file : nukedDir.listFiles(new ForbiddenFilesFilter())) {
            if (file.isDirectory()) {
                totalBytesNuked += calculateNukeSize(file, victims);
            } else {
                totalBytesNuked += file.length();
                metadata = dir.getMetadata(file.getName());
                if (metadata != null) { // if there's no user information for this file, then we don't do anything about it
                    bytesForUser = victims.get(metadata.getUsername());
                    if (bytesForUser == null) {
                        bytesForUser = 0L;
                    }
                    victims.put(metadata.getUsername(), bytesForUser + file.length()); // update the value for the user
                }
            }
        }
        return totalBytesNuked;
    }
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.