private EGenericodeDocumentType (@Nonnull final Class <?> aClass, @Nonnull final List <? extends ClassPathResource> aXSDPaths) { m_aDocType = new JAXBDocumentType (aClass, aXSDPaths, x -> StringHelper.trimEnd (x, "Document")); }
public void put (@Nonnull final String sPath, @Nullable final Object aValue) { // replace everything just to have opening separators ("[") left and only // one closing separator ("]") at the end String sRealPath = StringHelper.replaceAll (sPath, s_sClose + s_sOpen, s_sOpen); // Remove the remaining trailing closing separator sRealPath = StringHelper.trimEnd (sRealPath, s_sClose); // Remove any remaining opening closing separator because this indicates and // invalid level (as e.g. in 'columns[0][]') sRealPath = StringHelper.trimEndRepeatedly (sRealPath, s_sOpen); // Start parsing _parseAndAddItem (m_aMap, sRealPath, aValue); }
private EEbInterfaceDocumentType (@Nonnull final Class <?> aClass, @Nonnull final List <? extends ClassPathResource> aXSDPaths) { m_aDocType = new JAXBDocumentType (aClass, aXSDPaths, x -> StringHelper.trimEnd (x, "Type")); }
@Nonnull public DTCol setDisplayTypePercentage (@Nonnull final Locale aDisplayLocale) { return setDisplayType (EDTColType.DOUBLE, aDisplayLocale, x -> StringHelper.trimEnd (x, "%")); }
private EAsicDocumentType (@Nonnull final Class <?> aClass, @Nonnull final List <ClassPathResource> aXSDPath) { m_aDocType = new JAXBDocumentType (aClass, aXSDPath, x -> StringHelper.trimEnd (x, "Type")); }
@Nonnull public static String getMinifiedJSFilename (@Nonnull final String sJSFilename) { if (!isJSFilename (sJSFilename)) throw new IllegalArgumentException ("Passed file name '" + sJSFilename + "' is not a JS file name!"); if (isMinifiedJSFilename (sJSFilename)) return sJSFilename; return StringHelper.trimEnd (sJSFilename, CJS.FILE_EXTENSION_JS) + CJS.FILE_EXTENSION_MIN_JS; } }
private EUBLTRDocumentType (@Nonnull final Class <?> aClass, @Nonnull @Nonempty final List <? extends ClassPathResource> aXSDs) { m_aDocType = new JAXBDocumentType (aClass, aXSDs, s -> StringHelper.trimEnd (s, "Type")); }
@Nonnull public static String getTextWithState (@Nonnull final String sText, @Nonnull final ELabelType eType) { ValueEnforcer.notNull (sText, "Text"); ValueEnforcer.notNull (eType, "Type"); // Trim optional trailing colon String sPlainText = StringHelper.trimEnd (sText.trim (), LABEL_END); // Append suffix only, if at least some text is present if (StringHelper.hasText (sPlainText)) sPlainText += getSuffix (eType, !StringHelper.endsWith (sPlainText, '?')); return sPlainText; }
private EUBLPEDocumentType (@Nonnull final EUBL20DocumentType eOther) { m_aDocType = new JAXBDocumentType (eOther.getImplementationClass (), eOther.getAllXSDResources (), s -> StringHelper.trimEnd (s, "Type")); }
private EUBL21DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL21.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
@OverrideOnDemand protected String getCellText (@Nullable final IHCCell <?> aCell) { if (aCell == null) return ""; String sText = aCell.getPlainText (); // strip common prefix and suffix if (StringHelper.hasText (m_sCommonPrefix)) sText = StringHelper.trimStart (sText, m_sCommonPrefix); if (StringHelper.hasText (m_sCommonSuffix)) sText = StringHelper.trimEnd (sText, m_sCommonSuffix); return sText; }
@OverrideOnDemand protected String getCellText (@Nullable final IHCCell <?> aCell) { if (aCell == null) return ""; String sText = aCell.getPlainText (); // strip common prefix and suffix if (StringHelper.hasText (m_sCommonPrefix)) sText = StringHelper.trimStart (sText, m_sCommonPrefix); if (StringHelper.hasText (m_sCommonSuffix)) sText = StringHelper.trimEnd (sText, m_sCommonSuffix); return sText; }
@OverrideOnDemand protected String getCellText (@Nullable final IHCCell <?> aCell) { if (aCell == null) return ""; String sText = aCell.getPlainText (); // strip common prefix and suffix if (StringHelper.hasText (m_sCommonPrefix)) sText = StringHelper.trimStart (sText, m_sCommonPrefix); if (StringHelper.hasText (m_sCommonSuffix)) sText = StringHelper.trimEnd (sText, m_sCommonSuffix); return sText; }
@OverrideOnDemand protected String getCellText (@Nullable final IHCCell <?> aCell) { if (aCell == null) return ""; String sText = aCell.getPlainText (); // strip common prefix and suffix if (StringHelper.hasText (m_sCommonPrefix)) sText = StringHelper.trimStart (sText, m_sCommonPrefix); if (StringHelper.hasText (m_sCommonSuffix)) sText = StringHelper.trimEnd (sText, m_sCommonSuffix); return sText; }
@OverrideOnDemand protected String getCellText (@Nullable final IHCCell <?> aCell) { if (aCell == null) return ""; String sText = aCell.getPlainText (); // strip common prefix and suffix if (StringHelper.hasText (m_sCommonPrefix)) sText = StringHelper.trimStart (sText, m_sCommonPrefix); if (StringHelper.hasText (m_sCommonSuffix)) sText = StringHelper.trimEnd (sText, m_sCommonSuffix); return sText; }
private EUBL22DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL22.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
private EUBL20DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL20.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
private EUBL21DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL21.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
private EUBL22DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL22.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }
private EUBL20DocumentType (@Nonnull final Class <?> aClass, @Nonnull final String sXSDPath) { m_aDocType = new JAXBDocumentType (aClass, new CommonsArrayList <> (new ClassPathResource (CUBL20.SCHEMA_DIRECTORY + sXSDPath, _getCL ())), s -> StringHelper.trimEnd (s, "Type")); }