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
|
String |
getName()
Allows retrieving of component's name
|
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 String getName()
public String getComponentTitle()
public String getComponentVersion()
public String getComponentClass()
public HashMap<String,Object> getComponentData()
public Element toElement()
public static Package getImplementation(Class<?> c)
c
- class for which package is to be retrievedpublic static String getImplementationVersion(Class<?> c)
c
- class for which Package version is to be retrievedpublic static String getImplementationTitle(Class<?> c)
c
- class for which Package title is to be retrievedCopyright © 2017 "Tigase, Inc.". All rights reserved.