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 
     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="{}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"/>
 @XmlType(name = "UnderlineEnumeration")
 public enum UnderlineEnumeration {

Single Underline

Underline Non-Space Characters Only

Double Underline

Thick Underline

Dotted Underline

Thick Dotted Underline

Dashed Underline

Thick Dashed Underline

Long Dashed Underline

Thick Long Dashed Underline

Dash-Dot Underline

Thick Dash-Dot Underline

Dash-Dot-Dot Underline

Thick Dash-Dot-Dot Underline

Wave Underline

Heavy Wave Underline

Double Wave Underline

No Underline
    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