Class 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 Detail

      • getAllLocalNames

        @Nonnull
        @ReturnsMutableCopy
        public static com.helger.commons.collection.impl.ICommonsSet<String> getAllLocalNames()
        Returns:
        A non-null set 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 be null.
        Returns:
        null if 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 be null.
        Returns:
        null if 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 be null.
        Returns:
        null if the implementation class is null or 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 be null.
        Returns:
        null if 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 be null.
        Returns:
        null if no such UBLTR document type exists.