Package com.helger.ubltr
Class UBLTRDocumentTypes
- java.lang.Object
-
- com.helger.ubltr.UBLTRDocumentTypes
-
@Immutable public final class UBLTRDocumentTypes extends Object
UBL document type map. Provides sanity methods for accessing UBLTR document types based on different information items.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.helger.commons.collection.impl.ICommonsSet<String>getAllLocalNames()static EUBLTRDocumentTypegetDocumentTypeOfImplementationClass(Class<?> aImplClass)Get the UBLTR document type matching the passed implementation class.static EUBLTRDocumentTypegetDocumentTypeOfLocalName(String sLocalName)Get the document type matching the passed document element local name.static Class<?>getImplementationClassOfLocalName(String sLocalName)Get the domain object class of the passed document element local name.static SchemagetSchemaOfImplementationClass(Class<?> aImplClass)Get the XSD Schema object for the UBLTR document type of the passed implementation class.static SchemagetSchemaOfLocalName(String sLocalName)Get the XSD Schema object for the UBLTR document type of the passed document element local name.
-
-
-
Method Detail
-
getAllLocalNames
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsSet<String> getAllLocalNames()
- Returns:
- A non-
nullset of all supported UBLTR document element local names.
-
getDocumentTypeOfLocalName
@Nullable public static EUBLTRDocumentType getDocumentTypeOfLocalName(@Nullable String sLocalName)
Get the document type matching the passed document element local name.- Parameters:
sLocalName- The document element local name of any UBLTR document type. May benull.- Returns:
nullif no UBLTR document type matching the specified local name exists.
-
getImplementationClassOfLocalName
@Nullable public static Class<?> getImplementationClassOfLocalName(@Nullable String sLocalName)
Get the domain object class of the passed document element local name.- Parameters:
sLocalName- The document element local name of any UBLTR document type. May benull.- Returns:
nullif no such implementation class exists.
-
getDocumentTypeOfImplementationClass
@Nullable public static EUBLTRDocumentType getDocumentTypeOfImplementationClass(@Nullable Class<?> aImplClass)
Get the UBLTR document type matching the passed implementation class.- Parameters:
aImplClass- The implementation class to use. May benull.- Returns:
nullif the implementation class isnullor if no UBLTR document type has the specified implementation class.
-
getSchemaOfLocalName
@Nullable public static Schema getSchemaOfLocalName(@Nullable String sLocalName)
Get the XSD Schema object for the UBLTR document type of the passed document element local name.- Parameters:
sLocalName- The document element local name of any UBLTR document type. May benull.- Returns:
nullif no such UBLTR document type exists.
-
getSchemaOfImplementationClass
@Nullable public static Schema getSchemaOfImplementationClass(@Nullable Class<?> aImplClass)
Get the XSD Schema object for the UBLTR document type of the passed implementation class.- Parameters:
aImplClass- The implementation class of any UBLTR document type. May benull.- Returns:
nullif no such UBLTR document type exists.
-
-