Skip to content

Commit

Permalink
Removed deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 4, 2024
1 parent b3b22fb commit ce8f433
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 841 deletions.
156 changes: 0 additions & 156 deletions ph-ubl-dian/src/main/java/com/helger/dianubl/DianUBLDocumentTypes.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public static class DianUBLJAXBMarshaller <JAXBTYPE> extends GenericJAXBMarshall
CUBL21.XSD_COMMON_AGGREGATE_COMPONENTS,
CDianUBL.XSD_DIAN_UBL_STRUCTURE);

private final QName m_aRootElementQName;

@Nonnull
public static ICommonsList <ClassPathResource> getAllXSDs (@Nullable final ICommonsList <ClassPathResource> aList)
{
Expand All @@ -76,6 +78,8 @@ public DianUBLJAXBMarshaller (@Nonnull final Class <JAXBTYPE> aType,
{
super (aType, getAllXSDs (aSourceXSDs), createSimpleJAXBElement (aRootElementQName, aType));

m_aRootElementQName = aRootElementQName;

// Create a special namespace context for the passed document type
final MapBasedNamespaceContext aNSContext = DianUBLNamespaceContext.getInstance ().getClone ();
// Avoid overwriting an already mapped context
Expand All @@ -84,6 +88,18 @@ public DianUBLJAXBMarshaller (@Nonnull final Class <JAXBTYPE> aType,
setNamespaceContext (aNSContext);
}

@Nonnull
public final QName getRootElementQName ()
{
return m_aRootElementQName;
}

@Nonnull
public final String getRootElementNamespaceURI ()
{
return m_aRootElementQName.getNamespaceURI ();
}

@Nullable
public Schema getSchema ()
{
Expand Down
112 changes: 0 additions & 112 deletions ph-ubl-dian/src/main/java/com/helger/dianubl/DianUBLReader.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit ce8f433

Please sign in to comment.