public final class SecurityUIHelper @PresentForCodeCoverage private static final SecurityUIHelper s_aInstance = new SecurityUIHelper ();
/** * See http://dev.w3.org/html5/markup/common-models.html#common-models * * @author Philip Helger */ @Immutable public final class CHTMLContentModel { public static final int VALUE_METADATA = CHTMLContentKind.VALUE_METADATA; public static final int VALUE_FLOW = CHTMLContentKind.VALUE_FLOW; public static final int VALUE_PHRASING = CHTMLContentKind.VALUE_PHRASING; @SuppressWarnings ("unused") @PresentForCodeCoverage private static final CHTMLContentModel s_aInstance = new CHTMLContentModel (); private CHTMLContentModel () {} }
/** * Constants for the handling of ContextValueAssociation documents * * @author Philip Helger */ @Immutable public final class CCVA { // 1.0 XSD resources public static final List <? extends IReadableResource> CVA_10_XSDS = ContainerHelper.newUnmodifiableList (new ClassPathResource ("/schemas/ContextValueAssociation-1.0.xsd"), new ClassPathResource ("/schemas/xml.xsd")); @SuppressWarnings ("unused") @PresentForCodeCoverage private static final CCVA s_aInstance = new CCVA (); private CCVA () {} }
/** * Helper class that holds the current class version. Must be a separate class * to maintain the correct initialization order. * * @author Philip Helger */ @Immutable final class JavaVersionConstants { /** The global Java class version as a double value. */ public static final double CLASS_VERSION = StringParser.parseDouble (SystemProperties.getJavaClassVersion (), CGlobal.ILLEGAL_DOUBLE); @PresentForCodeCoverage @SuppressWarnings ("unused") private static final JavaVersionConstants s_aInstance = new JavaVersionConstants (); private JavaVersionConstants () {} }
/** * Constants for JMX usage * * @author Philip Helger */ @Immutable public final class CJMX { /** JMX domain for phloc products */ public static final String PHLOC_JMX_DOMAIN = "com.phloc"; /** Standard JMX property */ public static final String PROPERTY_TYPE = "type"; /** Standard JMX property */ public static final String PROPERTY_NAME = "name"; @PresentForCodeCoverage @SuppressWarnings ("unused") private static final CJMX s_aInstance = new CJMX (); private CJMX () {} }
private static final IStatisticsHandlerTimer s_aTimerHdl = StatisticsManager.getTimerHandler (MainRunner.class); @PresentForCodeCoverage @SuppressWarnings ("unused") private static final MainRunner s_aInstance = new MainRunner ();
/** * Constants for the handling of Genericode documents * * @author Philip Helger */ @Immutable public final class CGenericode { // 0.4 XSD resources public static final List <? extends IReadableResource> GENERICODE_04_XSDS = ContainerHelper.newUnmodifiableList (new ClassPathResource ("/schemas/genericode-code-list-0.4.xsd"), new ClassPathResource ("/schemas/xml.xsd")); // 1.0 XSD resources public static final List <? extends IReadableResource> GENERICODE_10_XSDS = ContainerHelper.newUnmodifiableList (new ClassPathResource ("/schemas/genericode-1.0.xsd"), new ClassPathResource ("/schemas/xml.xsd")); @SuppressWarnings ("unused") @PresentForCodeCoverage private static final CGenericode s_aInstance = new CGenericode (); private CGenericode () {} }
/** * Source: * http://www.w3.org/html/wg/drafts/html/master/dom.html#kinds-of-content * * @author Philip Helger */ @Immutable public final class CHTMLContentKind { public static final int VALUE_METADATA = 0x01; public static final int VALUE_FLOW = 0x02; public static final int VALUE_SECTIONING = 0x04; public static final int VALUE_HEADING = 0x08; public static final int VALUE_PHRASING = 0x10; public static final int VALUE_EMBEDDED = 0x20; public static final int VALUE_INTERACTIVE = 0x40; @SuppressWarnings ("unused") @PresentForCodeCoverage private static final CHTMLContentKind s_aInstance = new CHTMLContentKind (); private CHTMLContentKind () {} }
/** * This class contains constants for the use of changelogs. * * @author Philip Helger */ @Immutable public final class CChangeLog { /** The namespace used in XML */ public static final String CHANGELOG_NAMESPACE_10 = "http://www.phloc.com/ns/changelog/1.0"; /** The classpath relative path to the changelog XSD file */ public static final String CHANGELOG_XSD_10 = "schemas/changelog-1.0.xsd"; /** The schemaLocation value of the changeLog 1.0 XSD */ public static final String CHANGELOG_SCHEMALOCATION_10 = CHANGELOG_NAMESPACE_10 + " " + CHANGELOG_XSD_10; /** The default file name of the changelog XML */ public static final String CHANGELOG_XML_FILENAME = "changelog.xml"; @PresentForCodeCoverage @SuppressWarnings ("unused") private static final CChangeLog s_aInstance = new CChangeLog (); private CChangeLog () {} }
/** * Constants for UBL 2.0 handling. * * @author Philip Helger */ @Immutable public final class CUBL20 { /** The classpath relative directory where the main XSDs reside */ public static final String SCHEMA_DIRECTORY = "schemas/ubl20/maindoc/"; /** The cac namespace URL */ public static final String XML_SCHEMA_CAC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"; /** The cbc namespace URL */ public static final String XML_SCHEMA_CBC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"; /** The cec namespace URL */ public static final String XML_SCHEMA_CEC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"; @PresentForCodeCoverage @SuppressWarnings ("unused") private static final CUBL20 s_aInstance = new CUBL20 (); private CUBL20 () {} }
/** * JavaScript constants. * * @author Philip Helger */ @Immutable public final class CJS { /** The JavaScript prefix "javascript:" */ public static final String JS_PREFIX = EURLProtocol.JAVASCRIPT.getProtocol (); public static final String JS_NULL = "null"; /** The void statement "javascript:void(0);" */ public static final String JS_VOID = JS_PREFIX + "void(0);"; /** Regular JS file extension */ public static final String FILE_EXTENSION_JS = ".js"; /** Minified JS file extension */ public static final String FILE_EXTENSION_MIN_JS = ".min.js"; @PresentForCodeCoverage @SuppressWarnings ("unused") private static final CJS s_aInstance = new CJS (); private CJS () {} }
/** * Constants for UBL 2.1 handling. * * @author Philip Helger */ @Immutable public final class CUBL21 { /** The classpath relative directory where the main XSDs reside */ public static final String SCHEMA_DIRECTORY = "schemas/ubl21/maindoc/"; /** The cac namespace URL */ public static final String XML_SCHEMA_CAC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"; /** The cbc namespace URL */ public static final String XML_SCHEMA_CBC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"; /** The cec namespace URL */ public static final String XML_SCHEMA_CEC_NAMESPACE_URL = "urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"; @PresentForCodeCoverage @SuppressWarnings ("unused") private static final CUBL21 s_aInstance = new CUBL21 (); private CUBL21 () {} }
/** * A small helper class, that constructs {@link DecimalFormatSymbols} objects in * the best suitable way. For Java < 1.6 it is to use * "new DecimalFormatSymbols (Locale)". For Java >= 1.6 * "DecimalFormatSymbols.getInstance (Locale)" is more suitable! * * @author Philip Helger */ @Immutable public final class DecimalFormatSymbolsFactory { @PresentForCodeCoverage @SuppressWarnings ("unused") private static final DecimalFormatSymbolsFactory s_aInstance = new DecimalFormatSymbolsFactory (); private DecimalFormatSymbolsFactory () {} @Nonnull public static DecimalFormatSymbols getInstance (final Locale aLocale) { // IFJDK5 return new DecimalFormatSymbols (aLocale); // ELSE // return DecimalFormatSymbols.getInstance (aLocale); // ENDIF } }
@PresentForCodeCoverage @SuppressWarnings ("unused") private static final CHTMLCharset s_aInstance = new CHTMLCharset ();
/** * A small helper class, that constructs {@link DateFormatSymbols} objects in * the best suitable way. For Java < 1.6 it is to use * "new DateFormatSymbols (Locale)". For Java >= 1.6 * "DateFormatSymbols.getInstance (Locale)" is more suitable! * * @author Philip Helger */ @Immutable public final class DateFormatSymbolsFactory { @PresentForCodeCoverage @SuppressWarnings ("unused") private static final DateFormatSymbolsFactory s_aInstance = new DateFormatSymbolsFactory (); private DateFormatSymbolsFactory () {} @Nonnull public static DateFormatSymbols getInstance (final Locale aLocale) { // IFJDK5 return new DateFormatSymbols (aLocale); // ELSE // return DateFormatSymbols.getInstance (aLocale); // ENDIF } }
@PresentForCodeCoverage @SuppressWarnings ("unused") private static final CCSS s_aInstance = new CCSS ();
@PresentForCodeCoverage private static final TroveInit s_aInstance = new TroveInit ();
public final class Utf8ResourceBundle @PresentForCodeCoverage @SuppressWarnings ("unused") private static final Utf8ResourceBundle s_aInstance = new Utf8ResourceBundle ();
@PresentForCodeCoverage private static final CSSExpressionTermOptimizer s_aInstance = new CSSExpressionTermOptimizer ();
@PresentForCodeCoverage @SuppressWarnings ("unused") private static final CCSS s_aInstance = new CCSS ();