com.sun.xml.bind.v2.model.runtime.RuntimeLeafInfo Maven / Gradle / Ivy
/*
* 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 com.sun.xml.bind.v2.model.runtime;
import java.lang.reflect.Type;
import javax.xml.namespace.QName;
import com.sun.xml.bind.v2.model.core.LeafInfo;
import com.sun.xml.bind.v2.runtime.Transducer;
/**
* @author Kohsuke Kawaguchi
*/
public interface RuntimeLeafInfo extends LeafInfo, RuntimeNonElement {
/**
* {@inheritDoc}
*
* @return
* always non-null.
*/
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();
}