Examples of Properties


Examples of org.modeshape.jcr.cache.CachedNode.Properties

    protected void modifyProperties( NodeKey key,
                                     Map<Name, AbstractPropertyChange> propChanges ) {
    }

    private final Properties props( final Map<Name, Property> properties ) {
        return new Properties() {
            @Override
            public org.modeshape.jcr.value.Property getProperty( Name name ) {
                return properties.get(name);
            }
View Full Code Here

Examples of org.more.util.map.Properties

        }
        return iatt;
    }
    /**读取一个属性文件,并且以{@link Map}接口的形式返回。*/
    public static Map<String, String> getPropertys(final String resourcePath) throws IOException {
        Properties prop = new Properties();
        InputStream in = ResourcesUtils.getResourceAsStream(ResourcesUtils.formatResource(resourcePath));
        if (in != null) {
            prop.load(in);
        }
        return prop;
    }
View Full Code Here

Examples of org.netbeans.api.debugger.Properties

            cp2.removePropertyChangeListener (l);
        }
    }
   
    private void initSourcePaths () {
        Properties properties = Properties.getDefault ().
            getProperties ("debugger").getProperties ("sources");
        Set originalSourceRoots = new HashSet (Arrays.asList (
            sourcePathProvider.getOriginalSourceRoots ()
        ));
        Set sourceRoots = new HashSet (Arrays.asList (
            sourcePathProvider.getSourceRoots ()
        ));

        Iterator enabledSourceRoots = properties.getProperties ("source_roots").
            getCollection ("enabled", Collections.EMPTY_SET).iterator ();
        while (enabledSourceRoots.hasNext ()) {
            String root = (String) enabledSourceRoots.next ();
            if (originalSourceRoots.contains (root))
                sourceRoots.add (root);
        }
        Iterator disabledSourceRoots = properties.getProperties ("source_roots").
            getCollection ("disabled", Collections.EMPTY_SET).iterator ();
        while (disabledSourceRoots.hasNext ()) {
            String root = (String) disabledSourceRoots.next ();
            sourceRoots.remove (root);
        }
View Full Code Here

Examples of org.neuroph.util.Properties

        assertEquals(1, result, 0.0);
    }

    @Test
    public void testgetOutputwithproperties() {
        Properties properties = new Properties();
        properties.setProperty("transferFunction.slope", 1.0);
        instance = new Linear(properties);//again
        double result = instance.getOutput(input);
        assertEquals(expected, result, 0.0);
    }
View Full Code Here

Examples of org.sonar.api.Properties

    }
    return this;
  }

  private PropertyDefinitions addComponentFromAnnotationProperty(Object component, String defaultCategory) {
    Properties annotations = AnnotationUtils.getAnnotation(component, Properties.class);
    if (annotations != null) {
      for (Property property : annotations.value()) {
        addProperty(property, defaultCategory);
      }
    }
    Property annotation = AnnotationUtils.getAnnotation(component, Property.class);
    if (annotation != null) {
View Full Code Here

Examples of org.uberfire.java.nio.base.Properties

    public static boolean buildDotFile( final Path path,
                                        final OutputStream out,
                                        final FileAttribute<?>... attrs ) {
        boolean hasContent = false;
        if ( attrs != null && attrs.length > 0 ) {
            final Properties properties = new Properties();

            for ( final FileAttribute<?> attr : attrs ) {
                if ( attr.value() instanceof Serializable ) {
                    hasContent = true;
                    properties.put( attr.name(), attr.value() );
                }
            }

            if ( hasContent ) {
                try {
                    properties.store( out );
                } catch ( final Exception e ) {
                    throw new IOException( e );
                }
            }
View Full Code Here

Examples of project.entities.authorization.Properties

public class PropertiesDAOImpl extends HibernateDaoSupport implements
    PropertiesDAO {

  @Override
  public Properties createProperties(int role, int user, boolean value) {
    Properties properties = new Properties(role, user, value);
    return (Properties) getHibernateTemplate().save(properties);
  }
View Full Code Here

Examples of railo.runtime.net.s3.Properties

  }

 
  public static String loadWithNewPattern(S3 s3,RefInteger storage, String path) {
    PageContext pc = ThreadLocalPageContext.get();
    Properties prop=null;
    if(pc!=null){
      prop=pc.getApplicationContext().getS3();
    }
    if(prop==null) prop=new PropertiesImpl();
   
    int defaultLocation = prop.getDefaultLocation();
    storage.setValue(defaultLocation);
    String accessKeyId = prop.getAccessKeyId();
    String secretAccessKey = prop.getSecretAccessKey();
   
    int atIndex=path.indexOf('@');
    int slashIndex=path.indexOf('/');
    if(slashIndex==-1){
      slashIndex=path.length();
      path+="/";
    }
    int index;
   
    // key/id
    if(atIndex!=-1) {
      index=path.indexOf(':');
      if(index!=-1 && index<atIndex) {
        accessKeyId=path.substring(0,index);
        secretAccessKey=path.substring(index+1,atIndex);
        index=secretAccessKey.indexOf(':');
        if(index!=-1) {
          String strStorage=secretAccessKey.substring(index+1).trim().toLowerCase();
          secretAccessKey=secretAccessKey.substring(0,index);
          //print.out("storage:"+strStorage);
          storage.setValue(S3.toIntStorage(strStorage, defaultLocation));
        }
      }
      else accessKeyId=path.substring(0,atIndex);
    }
    path=prettifyPath(path.substring(atIndex+1));
    index=path.indexOf('/');
    s3.setHost(prop.getHost());
    if(index==-1){
      if(path.equalsIgnoreCase(S3Constants.HOST) || path.equalsIgnoreCase(prop.getHost())){
        s3.setHost(path);
        path="/";
      }
    }
    else {
      String host=path.substring(0,index);
      if(host.equalsIgnoreCase(S3Constants.HOST) || host.equalsIgnoreCase(prop.getHost())){
        s3.setHost(host);
        path=path.substring(index);
      }
    }
   
View Full Code Here

Examples of unibg.overencrypt.client.view.Properties

          users.add(jsonTemp.getString("username"));
        }
      } catch (JSONException jsonException) {
        LOGGER.error(jsonException.getMessage());
      }
      new Properties(folderName, owner, users);
      OverEncryptRequest.generateRequest(ClientPrimitives.OE_GET_USERNAMES, OverEncryptRequestType.UNLOCK, owner, path);
    }
  }
View Full Code Here

Examples of weasel.compiler.WeaselOperator.Properties

      isEOFOk = true;
      WeaselTokenType wtt = WeaselTokenType.getTokenTypeFor(""+c, false);
      if(wtt!=null){
        return new WeaselToken(wtt, line);
      }
      Properties lastFullEqual = null;
      boolean again = true;
      String s="";
      int back=0;
      isEOFOk = false;
      while(again){
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.