public class JAXRUtils
extends java.lang.Object
Constructor and Description |
---|
JAXRUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Association> |
asAssociationCollection(java.util.Collection<?> pCollection)
Returns the collection of association objects.
|
static java.util.Collection<Classification> |
asClassificationCollection(java.util.Collection<?> pCollection)
Returns the collection of classification objects.
|
static java.util.Collection<Concept> |
asConceptCollection(java.util.Collection<?> pCollection)
Returns the collection of concept objects.
|
static Classification |
findClassificationByConcept(RegistryObject ro,
java.lang.String key)
Retrieves a classification from
RegistryObject by a
concept key. |
static java.util.Collection<Classification> |
findClassificationsByConcept(RegistryObject ro,
Concept concept)
Retrieves classifications from
RegistryObject by a
concept. |
static java.util.Collection<Classification> |
findClassificationsByConcept(RegistryObject ro,
java.lang.String key)
Retrieves classifications from
RegistryObject by a concept
key. |
static java.util.Collection<Association> |
getAssociations(java.util.Collection<Association> pAssociations,
AssociationFilter pFilter)
Returns all associations in the given collection, that match the given
filter.
|
static java.util.Collection<Association> |
getAssociations(RegistryObject pObject)
Returns the given registry objects associations.
|
static java.util.Collection<Association> |
getAssociationsBySourceAndType(RegistryObject pRo,
java.lang.String associationType)
Returns all associations with the given source object and the given
association type.
|
static java.util.Collection<Association> |
getAssociationsBySourceAndTypeAndTarget(RegistryObject pRo,
java.lang.String associationType,
RegistryObject target)
Returns all associations with the given source object, the given
association type, and the given target object.
|
static java.util.Collection<Association> |
getAssociationsBySourceAndTypeAndTargetType(RegistryObject pRo,
java.lang.String associationType,
java.lang.String objectType)
Returns all associations with the given source object, the given
association type, and the given object type.
|
static Classification |
getClassification(RegistryObject ro,
java.lang.String key)
Retrieves a
Classification form a
RegistryObject by a given key. |
static java.util.Collection<Classification> |
getClassifications(RegistryObject pObject)
Returns the given objects classifications.
|
static java.lang.String |
getFirstSlotValue(RegistryObject pObject,
java.lang.String pName)
Returns the first value, of the slot with the given name, if any, or
null.
|
static java.lang.String |
getLocalName(Concept concept)
Returns the local name of this concept.
|
static java.lang.String |
getLocalStringValue(InternationalString internationalString,
java.util.Locale locale)
Returns the
InternationalString value for the given locale. |
static java.util.Collection<java.lang.String> |
getSlotValues(RegistryObject pObject,
java.lang.String pName)
Returns collection of values, of the slot with the given name.
|
public static java.lang.String getFirstSlotValue(RegistryObject pObject, java.lang.String pName) throws JAXRException
pObject
- the registry object.pName
- the slot name.JAXRException
- if an internal error occurs.public static java.util.Collection<java.lang.String> getSlotValues(RegistryObject pObject, java.lang.String pName) throws JAXRException
pObject
- the registry object.pName
- the slot name.JAXRException
- if an internal error occurs.public static final java.util.Collection<Classification> asClassificationCollection(java.util.Collection<?> pCollection)
pCollection
- the classification objects.public static final java.util.Collection<Association> asAssociationCollection(java.util.Collection<?> pCollection)
pCollection
- the association objectspublic static final java.util.Collection<Concept> asConceptCollection(java.util.Collection<?> pCollection)
pCollection
- the concept objects.public static java.util.Collection<Classification> getClassifications(RegistryObject pObject) throws JAXRException
pObject
- the registry object.JAXRException
- if an internal error occurs.public static Classification getClassification(RegistryObject ro, java.lang.String key) throws JAXRException
Classification
form a
RegistryObject
by a given key.ro
- the registry object.key
- the key.JAXRException
- if an internal error occurs.public static Classification findClassificationByConcept(RegistryObject ro, java.lang.String key) throws JAXRException
RegistryObject
by a
concept key.ro
- the registry object.key
- the concept key.JAXRException
- if an internal error occurs.public static java.util.Collection<Classification> findClassificationsByConcept(RegistryObject ro, java.lang.String key) throws JAXRException
RegistryObject
by a concept
key.ro
- the registry object.key
- the concept key.JAXRException
- if an internal error occurs.public static java.util.Collection<Classification> findClassificationsByConcept(RegistryObject ro, Concept concept) throws JAXRException
RegistryObject
by a
concept.ro
- the registry object.concept
- the concept.JAXRException
- if an internal error occurs.public static java.util.Collection<Association> getAssociations(RegistryObject pObject) throws JAXRException
pObject
- the registry object.JAXRException
- if an internal error occurs.public static java.util.Collection<Association> getAssociations(java.util.Collection<Association> pAssociations, AssociationFilter pFilter) throws JAXRException
pAssociations
- the collection of association objects.pFilter
- the association filter object.JAXRException
- if an internal error occurs.public static java.util.Collection<Association> getAssociationsBySourceAndTypeAndTargetType(RegistryObject pRo, java.lang.String associationType, java.lang.String objectType) throws JAXRException
pRo
- the registry object.associationType
- the association type.objectType
- the object type.JAXRException
- if an internal error occurs.public static java.util.Collection<Association> getAssociationsBySourceAndType(RegistryObject pRo, java.lang.String associationType) throws JAXRException
pRo
- the registry object.associationType
- the association type.JAXRException
- if an internal error occurs.public static java.util.Collection<Association> getAssociationsBySourceAndTypeAndTarget(RegistryObject pRo, java.lang.String associationType, RegistryObject target) throws JAXRException
pRo
- the registry object.associationType
- the association type.target
- the target registry object.JAXRException
- if an internal error occurs.public static java.lang.String getLocalName(Concept concept) throws JAXRException
concept
- the concept.JAXRException
- if an internal error occurs.public static java.lang.String getLocalStringValue(InternationalString internationalString, java.util.Locale locale)
Returns the InternationalString
value for the given locale. If
the given Locale
is null
uses the default
JVM locale.
If there is no value for the given locale this method searches for non
empty value depending on the boolean
argument.
internationalString
- the internationalString.locale
- the current locale.InternationalString
value.