Examples of MappingInformation


Examples of de.martinet.apps.tcgui.domain.MappingInformation

    Iterator<ArrayList<String>> itTmpArray =  tmpArray.iterator();
    // go through each arraylist and create a new Mappinginformation
    while (itTmpArray.hasNext()) {
      // getting one ArrayList containing the lines
      ArrayList<String> mapLines= itTmpArray.next();
      MappingInformation tmpMap = new MappingInformation();
     
      for (String line : mapLines) {
        String[] tmpToken = line.split(":");
        String lToken = tmpToken[0];
        String rToken = "";
        if (tmpToken.length > 1)
        {
          rToken = tmpToken[1];
        }else
        {
          rToken = KEY_DEVICE;
        }
         if (rToken.trim().equals(KEY_DEVICE)) {
          tmpMap.setSourceVolume(lToken);       
        } else if (lToken.trim().equals(KEY_ENCRYPTION)) {
          tmpMap.setEncription(rToken.trim());
        } else if (lToken.trim().equals(KEY_HIDDEN_VOLUME)) {
          tmpMap.setHiddenVolumeProtected(rToken
              .equalsIgnoreCase("No") ? false : true);
        } else if (lToken.trim().equals(KEY_OPERATION_MODE)) {
          tmpMap.setMode(rToken);
        } else if (lToken.trim().equals(KEY_READONLY)) {
          tmpMap.setReadOnly(rToken.equalsIgnoreCase("No") ? false
              : true);
        } else if (lToken.trim().equals(KEY_SIZE)) {
          tmpMap.setSize(rToken);
        } else if (lToken.trim().equals(KEY_TYPE)) {
          // TODO Implement
        } else if (lToken.trim().equals(KEY_VOLUME)) {
          tmpMap.setMappedTo(rToken);
        }

      }
      mapInfos.add(tmpMap);
    }
View Full Code Here

Examples of net.freedom.gj.beans.mapper.MappingInformation

        try {
            if (mappingInformation != null) {
                return mappingInformation;
            }

            mappingInformation = new MappingInformation();
            InputStream stream =this.getClass().getResourceAsStream(configurationFile);
            BufferedReader reader = new BufferedReader(new InputStreamReader( stream ));

            String line = "";           
            List<MappingData> list = new ArrayList<MappingData>();
View Full Code Here

Examples of net.freedom.gj.beans.mapper.MappingInformation

        if (mappingInformation != null) {
            return mappingInformation;
        }

        BeanFactory context = getContext(configurationFile);
        mappingInformation = new MappingInformation();
        mappingInformation.setMappingData((List<MappingData>) context.getBean("__mappingData"));
        try {
            mappingInformation.setPostProcessors((List<PostProcessor>) context.getBean("__postProcessors"));
        } catch (NoSuchBeanDefinitionException e) {
            // ignore
View Full Code Here

Examples of net.freedom.gj.beans.mapper.MappingInformation

    public MappingInformation getMappingInformation() {
        try {
            if (mappingInformation != null) {
                return mappingInformation;
            }
            mappingInformation = new MappingInformation();
            InputStream stream = this.getClass().getResourceAsStream(configurationFile);           
           
            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp = spf.newSAXParser();
            sp.parse(stream, new XmlDefaultHandler(mappingInformation));
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.