public class ComponentInfo extends Object
Constructor and Description |
---|
ComponentInfo(Class<?> c)
Creates ComponentInfo object with initial data
|
ComponentInfo(String cmpName,
Class<?> c)
Creates ComponentInfo object with initial data
|
ComponentInfo(String cmpTitle,
String cmpVersion,
String cmpCls)
Creates ComponentInfo object with initial data
|
ComponentInfo(String cmpName,
String cmpTitle,
String cmpVersion,
String cmpCls)
Creates ComponentInfo object with initial data
|
ComponentInfo(String cmpName,
String cmpTitle,
String cmpVersion,
String cmpCls,
HashMap<String,Object> cmpData)
Creates ComponentInfo object with initial data
|
Modifier and Type | Method and Description |
---|---|
String |
getComponentClass()
Allows retrieving of component's class
|
HashMap<String,Object> |
getComponentData()
Allows retrieving of component's additional data
|
String |
getComponentTitle()
Allows retrieving of component's title
|
String |
getComponentVersion()
Allows retrieving of component's version
|
static Package |
getImplementation(Class<?> c)
Allows retrieving implementation package (obtained from jar package) for a given class
|
static String |
getImplementationInfo(Class<?> c)
Allows retrieving implementation information (obtained from jar package) for a given class
|
static String |
getImplementationTitle(Class<?> c)
Allows retrieving implementation title (obtained from jar package) for a given class
|
static String |
getImplementationVersion(Class<?> c)
Allows retrieving implementation version (obtained from jar package) for a given class
|
static Optional<Version> |
getImplementationVersion(String... classes) |
String |
getName()
Allows retrieving of component's name
|
static Optional<ComponentInfo> |
of(String className) |
Element |
toElement()
Allows retrieving of component's information as Element
|
String |
toString() |
public ComponentInfo(String cmpTitle, String cmpVersion, String cmpCls)
cmpTitle
- title of the componentcmpVersion
- version of the componentcmpCls
- class of the componentpublic ComponentInfo(String cmpName, String cmpTitle, String cmpVersion, String cmpCls)
cmpName
- name of the componentcmpTitle
- title of the componentcmpVersion
- version of the componentcmpCls
- class of the componentpublic ComponentInfo(String cmpName, String cmpTitle, String cmpVersion, String cmpCls, HashMap<String,Object> cmpData)
cmpName
- name of the componentcmpTitle
- title of the componentcmpVersion
- version of the componentcmpCls
- class of the componentcmpData
- additional information about componentpublic ComponentInfo(Class<?> c)
c
- class of the componentpublic static Package getImplementation(Class<?> c)
c
- class for which package is to be retrievedpublic static String getImplementationInfo(Class<?> c)
c
- class for which Package information is to be retrievedpublic static String getImplementationTitle(Class<?> c)
c
- class for which Package title is to be retrievedpublic static Optional<Version> getImplementationVersion(String... classes)
public static String getImplementationVersion(Class<?> c)
c
- class for which Package version is to be retrievedpublic static Optional<ComponentInfo> of(String className)
public String getName()
public String getComponentTitle()
public String getComponentVersion()
public String getComponentClass()
public HashMap<String,Object> getComponentData()
public Element toElement()
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.