IRuntimeRepository.newJAXBContext() instead; that method uses a
IpsJAXBContext that includes all necessary adapters.@Deprecated public enum JAXBContextFactory extends Enum<JAXBContextFactory>
JAXBContext,
IRuntimeRepository| Modifier and Type | Method and Description |
|---|---|
static JAXBContext |
newContext(IRuntimeRepository repository)
Deprecated.
Creates a new JAXBContext that can marshal / unmarshal all model classes defined in the given
repository.
|
static JAXBContext |
newContext(IRuntimeRepository repository,
ClassLoader cl)
Deprecated.
Creates a new JAXBContext that can marshal / unmarshal all model classes defined in the given
repository.
|
static JAXBContextFactory |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static JAXBContextFactory[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static JAXBContextFactory[] values()
for (JAXBContextFactory c : JAXBContextFactory.values()) System.out.println(c);
public static JAXBContextFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static JAXBContext newContext(IRuntimeRepository repository) throws JAXBException, ClassNotFoundException
repository - The repository that contains the information about the model classesClassNotFoundException - If one of the model classes was not found.JAXBException - The exception thrown by JAXBContext.newInstance(Class...)NullPointerException - if repository is null.public static JAXBContext newContext(IRuntimeRepository repository, ClassLoader cl) throws JAXBException, ClassNotFoundException
repository - The repository that contains the information about the model classescl - The class loader to load the model classes.ClassNotFoundException - If one of the model classes was not found.JAXBException - The exception thrown by JAXBContext.newInstance(Class...)NullPointerException - if one of the parameters is null.Copyright © 2018. All rights reserved.