| /* |
| * Copyright (c) 2020 Kentyou. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Kentyou - initial API and implementation |
| */ |
| package org.eclipse.sensinact.gateway.generic.parser; |
| |
| import java.lang.annotation.Documented; |
| import java.lang.annotation.ElementType; |
| import java.lang.annotation.Retention; |
| import java.lang.annotation.RetentionPolicy; |
| import java.lang.annotation.Target; |
| |
| /** |
| * An XmlAttribute annotation associates an xml attribute and a field name |
| * |
| * @author <a href="mailto:christophe.munilla@cea.fr">Christophe Munilla</a> |
| */ |
| @Target(value = ElementType.PARAMETER) |
| @Retention(value = RetentionPolicy.RUNTIME) |
| @Documented |
| public @interface XmlAttribute { |
| public static final String DEFAULT_ATTRIBUTE_VALUE = "#DEFAULT_ATTRIBUTE#"; |
| |
| public String attribute() default DEFAULT_ATTRIBUTE_VALUE; |
| |
| public String field() default DEFAULT_ATTRIBUTE_VALUE; |
| } |