All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.glassfish.jaxb.runtime.v2.model.runtime.RuntimeLeafInfo Maven / Gradle / Ivy

There is a newer version: 4.0.5
Show newest version
/*
 * Copyright (c) 1997, 2021 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 org.glassfish.jaxb.runtime.v2.model.runtime;

import org.glassfish.jaxb.core.v2.model.core.LeafInfo;
import org.glassfish.jaxb.runtime.v2.runtime.Transducer;

import javax.xml.namespace.QName;
import java.lang.reflect.Type;

/**
 * @author Kohsuke Kawaguchi
 */
public interface RuntimeLeafInfo extends LeafInfo, RuntimeNonElement {
    /**
     *
     *
     * @return
     *      always non-null.
     */
    @Override
     Transducer getTransducer();

    /**
     * The same as {@link #getType()} but returns the type as a {@link Class}.
     * 

* Note that the returned {@link Class} object does not necessarily represents * a class declaration. It can be primitive types. */ Class getClazz(); /** * Returns all the type names recognized by this type for unmarshalling. * *

* While conceptually this method belongs to {@link RuntimeNonElement}, * if we do that we have to put a lot of dummy implementations everywhere, * so it's placed here, where it's actually needed. * * @return * Always non-null. Do not modify the returned array. */ QName[] getTypeNames(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy