com.sun.xml.bind.v2.runtime.reflect.opt.TransducedAccessor_method_Double Maven / Gradle / Ivy
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.bind.v2.runtime.reflect.opt;
import com.sun.xml.bind.DatatypeConverterImpl;
import com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor;
import com.sun.xml.bind.v2.runtime.reflect.DefaultTransducedAccessor;
/**
* Template {@link TransducedAccessor} for a double field.
*
* Auto-generated, do not edit.
*
*
* All the TransducedAccessor_field are generated from TransducedAccessor_field_B y t e
*
* @author Kohsuke Kawaguchi
*
* @see TransducedAccessor#get
*/
public final class TransducedAccessor_method_Double extends DefaultTransducedAccessor {
public String print(Object o) {
return DatatypeConverterImpl._printDouble( ((Bean)o).get_double() );
}
public void parse(Object o, CharSequence lexical) {
((Bean)o).set_double(DatatypeConverterImpl._parseDouble(lexical));
}
public boolean hasValue(Object o) {
return true;
}
//
// public void writeLeafElement(Object o, QName tagName, String fieldName, XMLSerializer w) throws SAXException, AccessorException {
// w.leafElement(tagName, ((Bean)o).get_double(), fieldName );
// }
}