| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package com.adobe.internal.xmp.options; |
| 10 |
|
| 11 |
import com.adobe.internal.xmp.XMPException; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
public final class TemplateOptions extends Options{ |
| 22 |
|
| 23 |
|
| 24 |
public static final int CLEAR_UNNAMED_PROPERTIES = 0x00000002; |
| 25 |
|
| 26 |
public static final int REPLACE_EXISTING_PROPERTIES = 0x00000010; |
| 27 |
|
| 28 |
public static final int INCLUDE_INTERNAL_PROPERTIES = 0x00000020; |
| 29 |
|
| 30 |
public static final int ADD_NEW_PROPERTIES = 0x00000040; |
| 31 |
|
| 32 |
public static final int REPLACE_WITH_DELETE_EMPTY = 0x00000080; |
| 33 |
|
| 34 |
public TemplateOptions() |
| 35 |
{ |
| 36 |
|
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
public TemplateOptions(int options) throws XMPException |
| 47 |
{ |
| 48 |
super(options); |
| 49 |
} |
| 50 |
|
| 51 |
@Override |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
protected int getValidOptions() { |
| 56 |
return CLEAR_UNNAMED_PROPERTIES | REPLACE_EXISTING_PROPERTIES | INCLUDE_INTERNAL_PROPERTIES | ADD_NEW_PROPERTIES |
| 57 |
| REPLACE_WITH_DELETE_EMPTY; |
| 58 |
} |
| 59 |
|
| 60 |
@Override |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
protected String defineOptionName(int option) { |
| 65 |
switch (option) |
| 66 |
{ |
| 67 |
case CLEAR_UNNAMED_PROPERTIES : return "CLEAR_UNNAMED_PROPERTIES"; |
| 68 |
case REPLACE_EXISTING_PROPERTIES : return "REPLACE_EXISTING_PROPERTIES"; |
| 69 |
case INCLUDE_INTERNAL_PROPERTIES : return "INCLUDE_INTERNAL_PROPERTIES"; |
| 70 |
case ADD_NEW_PROPERTIES : return "ADD_NEW_PROPERTIES"; |
| 71 |
case REPLACE_WITH_DELETE_EMPTY : return "REPLACE_WITH_DELETE_EMPTY"; |
| 72 |
default: return null; |
| 73 |
} |
| 74 |
} |
| 75 |
} |