Package org.omnaest.utils.propertyfile.content.element

Examples of org.omnaest.utils.propertyfile.content.element.Property


        //
        PropertyFileContent propertyFileContent = propertyFile.getPropertyFileContent();
        PropertyMap propertyMap = propertyFileContent.getPropertyMap();
       
        //
        Property property = propertyMap.get( propertyKey );
        if ( property != null )
        {
          //
          retval = new PropertyFileAndProperty();
          retval.setProperty( property );
View Full Code Here


      //
      PropertyFileAndProperty propertyFileAndProperty = this.resolvePropertyFileAndProperty( propertyKey, groupToken );
      if ( propertyFileAndProperty != null )
      {
        //
        Property property = propertyFileAndProperty.getProperty();
        if ( property != null )
        {
          //
          String[] valueTokens = value.split( Pattern.quote( MULTILINE_VALUES_SEPARATOR ) );
         
          //
          List<String> valueList = property.getValueList();
          valueList.clear();
          valueList.addAll( Arrays.asList( valueTokens ) );
         
          //
          propertyFileAndProperty.getPropertyFile().store();
View Full Code Here

      //
      PropertyFileAndProperty propertyFileAndProperty = this.resolvePropertyFileAndProperty( propertyKey, groupToken );
      if ( propertyFileAndProperty != null )
      {
        //
        Property property = propertyFileAndProperty.getProperty();
        if ( property != null )
        {
          //
          retval = StringUtils.join( property.getValueList(), MULTILINE_VALUES_SEPARATOR );
        }
      }
    }
   
    //
View Full Code Here

          {
            //
            String[] values = value.split( Pattern.quote( FileGroupToPropertiesAdapter.MULTILINE_VALUES_SEPARATOR ) );
           
            //
            Property property = propertyMap.containsKey( propertyKey ) ? property = propertyMap.get( propertyKey )
                                                                      : new Property();
           
            //
            property.setKey( propertyKey );
            property.clearValues();
            property.addAllValues( Arrays.asList( values ) );
           
            //
            propertyMap.put( property );
           
            //
View Full Code Here

TOP

Related Classes of org.omnaest.utils.propertyfile.content.element.Property

Copyright © 2018 www.massapicom. 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.