| 
  |||||||||||||||||||
| This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Text.java | - | 60% | 50% | 55,6% | 
             | 
  ||||||||||||||
| 1 | 
      /*  | 
 |
| 2 | 
      * JBind  | 
 |
| 3 | 
      *  | 
 |
| 4 | 
      * Copyright (c) by Stefan Wachter. All rights reserved.  | 
 |
| 5 | 
      *  | 
 |
| 6 | 
      * Usage, modification, and redistribution is subject to license terms that are  | 
 |
| 7 | 
      * available at 'http://www.jbind.org'. The JBind license is like the  | 
 |
| 8 | 
      * 'Apache Software License V 1.1'.  | 
 |
| 9 | 
      */  | 
 |
| 10 | 
      package org.jbind.xml.schema.element;  | 
 |
| 11 | 
       | 
 |
| 12 | 
      import org.jbind.xml.core.cmp.IAppInfoVisitor;  | 
 |
| 13 | 
       | 
 |
| 14 | 
       public class Text extends Node implements IText {
    | 
 |
| 15 | 
       | 
 |
| 16 | 
      private String myString = null;  | 
 |
| 17 | 
       | 
 |
| 18 | 154 | 
   
         public Text(String aString) {
   
    | 
 
| 19 | 154 | 
   
      super();  | 
 
| 20 | 154 | 
   
      myString = aString;  | 
 
| 21 | 
      }  | 
 |
| 22 | 
       | 
 |
| 23 | 3 | 
   
         public String getString() {
   
    | 
 
| 24 | 3 | 
   
      return myString;  | 
 
| 25 | 
      }  | 
 |
| 26 | 
       | 
 |
| 27 | 0 | 
   
   
         public String toString() {
   
   
    | 
 
| 28 | 0 | 
   
   
      return myString;  | 
 
| 29 | 
      }  | 
 |
| 30 | 
       | 
 |
| 31 | 0 | 
   
   
         public void acceptAppInfoVisitor(IAppInfoVisitor aVisitor) {
   
   
    | 
 
| 32 | 0 | 
   
   
      aVisitor.visitXmlText(this);  | 
 
| 33 | 
      }  | 
 |
| 34 | 
       | 
 |
| 35 | 
      }  | 
 |
| 36 | 
       | 
 
  | 
||||||||||