Enum IconsType
- java.lang.Object
-
- java.lang.Enum<IconsType>
-
- net.webpdf.wsclient.schema.operation.IconsType
-
- All Implemented Interfaces:
Serializable,Comparable<IconsType>
public enum IconsType extends Enum<IconsType>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p338479_="https://jakarta.ee/xml/ns/jaxb" xmlns:p733184_="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">If an attachment is embedded at the page level, this option can be used to specify the icon that should be used to show it:</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p338479_="https://jakarta.ee/xml/ns/jaxb" xmlns:p733184_="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">The value you use here will define which icon will be used, as well as the basic dimensions for the annotation generated in the PDF. If you use the "None" icon type, a predefined icon will not be used. Instead, this option will only use the dimensions specified in "width" and "height" to generate an annotation with a transparent selection box at the specified position. <ul><li>graph = Diagram</li><li>paperclip = Paper clip</li><li>pushPin = Thumb tack</li><li>tag = Tag</li><li>none = Rectangular selection box</li></ul></p>Java class for IconsType
.The following schema fragment specifies the expected content contained within this class.
<simpleType name="IconsType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="graph"/> <enumeration value="paperclip"/> <enumeration value="pushPin"/> <enumeration value="tag"/> <enumeration value="none"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IconsTypefromValue(String v)Gets the enum associated to the value passed as parameter.Stringvalue()Gets the value associated to the enum constant.static IconsTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IconsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static IconsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IconsType c : IconsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IconsType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
Gets the value associated to the enum constant.- Returns:
- The value linked to the enum.
-
fromValue
public static IconsType fromValue(String v)
Gets the enum associated to the value passed as parameter.- Parameters:
v- The value to get the enum from.- Returns:
- The enum which corresponds to the value, if it exists.
- Throws:
IllegalArgumentException- If no value matches in the enum declaration.
-
-