|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.csutils.core.utils.RegistryObjects
public class RegistryObjects
Utility method for working with registry objects.
Constructor Summary | |
---|---|
RegistryObjects()
|
Method Summary | |
---|---|
static java.util.Locale |
asLocale(java.lang.String pLocale)
Converts the given string into a locale. |
static java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociations(javax.xml.registry.infomodel.RegistryObject pObject)
Returns the given objects associations. |
static java.util.Collection<javax.xml.registry.infomodel.Classification> |
getClassifications(javax.xml.registry.infomodel.RegistryObject pObject)
Returns the given objects classifications. |
static java.lang.String |
getDescription(javax.xml.registry.infomodel.RegistryObject pRo)
Returns the registry objects description. |
static java.lang.String |
getDescription(javax.xml.registry.infomodel.RegistryObject pRo,
java.util.Locale pLocale)
Returns the registry objects description with the given Locale. |
static java.lang.String |
getDescription(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String pLocale)
Returns the registry objects description with the given Locale. |
static java.lang.String |
getName(javax.xml.registry.infomodel.RegistryObject pRo)
Returns the registry objects name. |
static java.lang.String |
getName(javax.xml.registry.infomodel.RegistryObject pRo,
java.util.Locale pLocale)
Returns the registry objects name with the given Locale. |
static java.lang.String |
getName(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String pLocale)
Returns the registry objects name with the given Locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryObjects()
Method Detail |
---|
public static java.lang.String getName(javax.xml.registry.infomodel.RegistryObject pRo) throws javax.xml.registry.JAXRException
InternationalString.getValue()
method and uses
the result, if it is non-null, and non-empty.InternationalString.getValue(Locale)
method with
the Locale.US
locale and uses the result, if it is non-null,
and non-empty.InternationalString.getValue(Locale)
method with
the Locale.ENGLISH
locale and uses the result, if it is non-null,
and non-empty.InternationalString.getLocalizedStrings()
method
and uses the first non-null, and non-empty value that is found.
pRo
- The registry object to query for its name.
javax.xml.registry.JAXRException
- The operation failed.public static java.lang.String getName(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String pLocale) throws javax.xml.registry.JAXRException
pRo
- The registry object to query for its name.pLocale
- The locales name as a string; internally
asLocale(String)
is invoked to convert the string
into a locale.
javax.xml.registry.JAXRException
- The operation failed.public static java.lang.String getName(javax.xml.registry.infomodel.RegistryObject pRo, java.util.Locale pLocale) throws javax.xml.registry.JAXRException
pRo
- The registry object to query for its name.pLocale
- The locales name.
javax.xml.registry.JAXRException
- The operation failed.public static java.lang.String getDescription(javax.xml.registry.infomodel.RegistryObject pRo) throws javax.xml.registry.JAXRException
InternationalString.getValue()
method and uses
the result, if it is non-null, and non-empty.InternationalString.getValue(Locale)
method with
the Locale.US
locale and uses the result, if it is non-null,
and non-empty.InternationalString.getValue(Locale)
method with
the Locale.ENGLISH
locale and uses the result, if it is non-null,
and non-empty.InternationalString.getLocalizedStrings()
method
and uses the first non-null, and non-empty value that is found.
pRo
- The registry object to query for its description.
javax.xml.registry.JAXRException
- The operation failed.public static java.lang.String getDescription(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String pLocale) throws javax.xml.registry.JAXRException
pRo
- The registry object to query for its description.pLocale
- The locales name as a string; internally
asLocale(String)
is invoked to convert the string
into a locale.
javax.xml.registry.JAXRException
- The operation failed.public static java.lang.String getDescription(javax.xml.registry.infomodel.RegistryObject pRo, java.util.Locale pLocale) throws javax.xml.registry.JAXRException
pRo
- The registry object to query for its description.pLocale
- The locales name.
javax.xml.registry.JAXRException
- The operation failed.public static java.util.Locale asLocale(java.lang.String pLocale)
pLocale
- The locales name; use the hyphen ('-') or underscore ('_')
characters as separators for language, country, and variant.
public static java.util.Collection<javax.xml.registry.infomodel.Association> getAssociations(javax.xml.registry.infomodel.RegistryObject pObject) throws javax.xml.registry.JAXRException
(Collection) pObject.getAssociations()
pObject
- The registry object to query for associations.
javax.xml.registry.JAXRException
- The operation failed.public static java.util.Collection<javax.xml.registry.infomodel.Classification> getClassifications(javax.xml.registry.infomodel.RegistryObject pObject) throws javax.xml.registry.JAXRException
(Collection) pObject.getClassifications()
pObject
- The registry object to query for classifications.
javax.xml.registry.JAXRException
- The operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |