| Modifier and Type | Required Element and Description |
|---|---|
String |
value
le sous-emplacement dans le DOM il faut aller chercher ou manipuler le
champ correspondant par XPath.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
format
le format de sérialisation/désérialisaiton utiliser entre une valeur
récupérée par XPath de type
XPathConstants.NODE et la propriété
Java annotée. |
Class<?> |
xpathType
le type que retournera l'évaluation XPath.
|
public abstract String value
L'expression XPath ne doit pas commencer par un slash ("/").
public abstract String format
XPathConstants.NODE et la propriété
Java annotée.
Exemple de format pour une propriété DateTime :
"yyyy-MM-dd".
public abstract Class<?> xpathType
Les correspondances sont les suivantes :
XPathConstants.NODESET ou
XPathConstants.NODE, selon que le type de retour du
getter annoté par FieldXPath est un tableau ou non.
La propriété Java peut être de n'importe quel type : int,
String, objet…
XPathConstants.NUMBER, par exemple
pour une expression XPath de type "count(xxx)". La valeur sera
ensuite convertie dans le type déclaré de la propriété Java (int, long, short, float ou double).
XPathConstants.STRING, par exemple
pour une expression XPath de type "substring(xxx)".
Copyright © 2011–2014. All rights reserved.