org.docx4j.dml.STPresetLineDashVal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-openxml-objects Show documentation
Show all versions of docx4j-openxml-objects Show documentation
Our JAXB representation of OpenXML, except for pml and sml (handled separately)
/*
* Copyright 2007-2008, 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.dml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ST_PresetLineDashVal.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ST_PresetLineDashVal">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="solid"/>
* <enumeration value="dot"/>
* <enumeration value="dash"/>
* <enumeration value="lgDash"/>
* <enumeration value="dashDot"/>
* <enumeration value="lgDashDot"/>
* <enumeration value="lgDashDotDot"/>
* <enumeration value="sysDash"/>
* <enumeration value="sysDot"/>
* <enumeration value="sysDashDot"/>
* <enumeration value="sysDashDotDot"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ST_PresetLineDashVal")
@XmlEnum
public enum STPresetLineDashVal {
/**
* Solid
*
*/
@XmlEnumValue("solid")
SOLID("solid"),
/**
* Dot
*
*/
@XmlEnumValue("dot")
DOT("dot"),
/**
* Dash
*
*/
@XmlEnumValue("dash")
DASH("dash"),
/**
* Large Dash
*
*/
@XmlEnumValue("lgDash")
LG_DASH("lgDash"),
/**
* Dash Dot
*
*/
@XmlEnumValue("dashDot")
DASH_DOT("dashDot"),
/**
* Large Dash Dot
*
*/
@XmlEnumValue("lgDashDot")
LG_DASH_DOT("lgDashDot"),
/**
* Large Dash Dot Dot
*
*/
@XmlEnumValue("lgDashDotDot")
LG_DASH_DOT_DOT("lgDashDotDot"),
/**
* System Dash
*
*/
@XmlEnumValue("sysDash")
SYS_DASH("sysDash"),
/**
* System Dot
*
*/
@XmlEnumValue("sysDot")
SYS_DOT("sysDot"),
/**
* System Dash Dot
*
*/
@XmlEnumValue("sysDashDot")
SYS_DASH_DOT("sysDashDot"),
/**
* System Dash Dot Dot
*
*/
@XmlEnumValue("sysDashDotDot")
SYS_DASH_DOT_DOT("sysDashDotDot");
private final String value;
STPresetLineDashVal(String v) {
value = v;
}
public String value() {
return value;
}
public static STPresetLineDashVal fromValue(String v) {
for (STPresetLineDashVal c: STPresetLineDashVal.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}