Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2013, Plutext Pty Ltd.
   *   
   *  This file is part of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 
 
 package org.docx4j.wml; 
 

Java class for UnderlineEnumeration.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="UnderlineEnumeration">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="single"/>
     <enumeration value="words"/>
     <enumeration value="double"/>
     <enumeration value="thick"/>
     <enumeration value="dotted"/>
     <enumeration value="dottedHeavy"/>
     <enumeration value="dash"/>
     <enumeration value="dashedHeavy"/>
     <enumeration value="dashLong"/>
     <enumeration value="dashLongHeavy"/>
     <enumeration value="dotDash"/>
     <enumeration value="dashDotHeavy"/>
     <enumeration value="dotDotDash"/>
     <enumeration value="dashDotDotHeavy"/>
     <enumeration value="wave"/>
     <enumeration value="wavyHeavy"/>
     <enumeration value="wavyDouble"/>
     <enumeration value="none"/>
   </restriction>
 </simpleType>
 
 
 @XmlType(name = "UnderlineEnumeration")
 public enum UnderlineEnumeration {


    
Single Underline
 
     @XmlEnumValue("single")
     SINGLE("single"),

    
Underline Non-Space Characters Only
 
     @XmlEnumValue("words")
     WORDS("words"),

    
Double Underline
 
     @XmlEnumValue("double")
     DOUBLE("double"),

    
Thick Underline
 
     @XmlEnumValue("thick")
     THICK("thick"),

    
Dotted Underline
 
     @XmlEnumValue("dotted")
     DOTTED("dotted"),

    
Thick Dotted Underline
    @XmlEnumValue("dottedHeavy")
    DOTTED_HEAVY("dottedHeavy"),

    
Dashed Underline
    @XmlEnumValue("dash")
    DASH("dash"),

    
Thick Dashed Underline
    @XmlEnumValue("dashedHeavy")
    DASHED_HEAVY("dashedHeavy"),

    
Long Dashed Underline
    @XmlEnumValue("dashLong")
    DASH_LONG("dashLong"),

    
Thick Long Dashed Underline
    @XmlEnumValue("dashLongHeavy")
    DASH_LONG_HEAVY("dashLongHeavy"),

    
Dash-Dot Underline
    @XmlEnumValue("dotDash")
    DOT_DASH("dotDash"),

    
Thick Dash-Dot Underline
    @XmlEnumValue("dashDotHeavy")
    DASH_DOT_HEAVY("dashDotHeavy"),

    
Dash-Dot-Dot Underline
    @XmlEnumValue("dotDotDash")
    DOT_DOT_DASH("dotDotDash"),

    
Thick Dash-Dot-Dot Underline
    @XmlEnumValue("dashDotDotHeavy")
    DASH_DOT_DOT_HEAVY("dashDotDotHeavy"),

    
Wave Underline
    @XmlEnumValue("wave")
    WAVE("wave"),

    
Heavy Wave Underline
    @XmlEnumValue("wavyHeavy")
    WAVY_HEAVY("wavyHeavy"),

    
Double Wave Underline
    @XmlEnumValue("wavyDouble")
    WAVY_DOUBLE("wavyDouble"),

    
No Underline
    @XmlEnumValue("none")
    NONE("none");
    private final String value;
         = v;
    }
    public String value() {
        return ;
    }
    public static UnderlineEnumeration fromValue(String v) {
        for (UnderlineEnumeration c: UnderlineEnumeration.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X