public final class Descriptors extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Descriptor> |
create(Class<T> type)
Creates a new Descriptor instance; the predefined default descriptor name for this type will be used.
|
static <T extends Descriptor> |
create(Class<T> type,
String descriptorName)
Creates a new named
Descriptor instance. |
static <T extends Descriptor> |
importAs(Class<T> type)
Returns a new
DescriptorImporter instance, ready to import as a new Descriptor instance of the
given type |
static <T extends Descriptor> |
importAs(Class<T> type,
String descriptorName)
Returns a new named
DescriptorImporter instance, ready to import as a new Descriptor instance of
the given type. |
public static <T extends Descriptor> T create(Class<T> type) throws IllegalArgumentException
T
- type
- IllegalArgumentException
- If the type is not specifiedcreate(Class, String)
public static <T extends Descriptor> T create(Class<T> type, String descriptorName) throws IllegalArgumentException
Descriptor
instance. If the name specified is null, the default name for this type
will be assigned.T
- type
- descriptorName
- the descriptor nameIllegalArgumentException
- If the type is not specifiedpublic static <T extends Descriptor> DescriptorImporter<T> importAs(Class<T> type) throws IllegalArgumentException
DescriptorImporter
instance, ready to import as a new Descriptor
instance of the
given typetype
- IllegalArgumentException
- If the type is not specifiedpublic static <T extends Descriptor> DescriptorImporter<T> importAs(Class<T> type, String descriptorName) throws IllegalArgumentException
DescriptorImporter
instance, ready to import as a new Descriptor
instance of
the given type. If the name specified is null, the default name for this type will be assigned.type
- descriptorName
- IllegalArgumentException
- If the type is not specifiedCopyright © 2021 JBoss by Red Hat. All rights reserved.