/** * Called when the singleton is destroyed. Perform all cleanup in this method. * * @throws Exception * If something goes wrong */ @OverrideOnDemand protected void onDestroy () throws Exception {}
@OverrideOnDemand @Nonnull public String getPlainText () { return ""; }
/** * Callback * * @param aOption * The added option. Never <code>null</code>. */ @OverrideOnDemand protected void onAddOption (@Nonnull final HCOption aOption) {}
@OverrideOnDemand @Nullable public List <IMicroNode> getChildren () { return null; }
@OverrideOnDemand @Nullable public IMicroNode getFirstChild () { return null; }
/** * modify parameter map * * @param aParams * parameter map */ @OverrideOnDemand protected void modifyParams (@Nonnull final JSAssocArray aParams) {}
@Nonnegative @OverrideOnDemand public int getMinimumArgumentCount () { return 1; }
/** * Callback * * @param aChild * The child that was added */ @OverrideOnDemand protected void beforeAddChild (@Nonnull final CHILDTYPE aChild) {}
@Nullable @OverrideOnDemand protected Locale getDisplayLocale () { return null; }
/** * Called after the note cell was altered. * * @param aNote * The new note */ @OverrideOnDemand protected void onNoteModified (@Nullable final IHCNode aNote) {}
/** * Customize the passed unmarshaller before unmarshalling (reading) something. * * @param aUnmarshaller * The object to customize. Never <code>null</code>. */ @OverrideOnDemand protected void customizeUnmarshaller (@Nonnull final Unmarshaller aUnmarshaller) { // empty }
@OverrideOnDemand protected void onWrite (@Nonnegative final int nBytesWritten, final long nTotalBytesWritten) { s_aLogger.info ("Wrote " + nBytesWritten + " byte(s); now at " + nTotalBytesWritten); }
@OverrideOnDemand @Nullable public IMicroNode getChildAtIndex (@Nonnegative final int nIndex) { return null; }
/** * @param aRoot * The JSON messages object to extend * @param aDisplayLocale * The locale to be used for test resolving. May be <code>null</code> * if none passed. */ @OverrideOnDemand protected void extendJSON (@Nonnull final JSAssocArray aRoot, @Nullable final Locale aDisplayLocale) {}
/** * Create a new cache map. * * @return Never <code>null</code>. */ @Nonnull @OverrideOnDemand protected Map <KEYTYPE, VALUETYPE> createCache () { return new WeakHashMap <KEYTYPE, VALUETYPE> (); }
/** * Apply custom properties to the passed {@link IMicroElement} * * @param aElement * Micro element. Never <code>null</code>. * @param aConversionSettings * The conversion settings to be used. Never <code>null</code>. */ @OverrideOnDemand protected void applyProperties (@Nonnull final IMicroElement aElement, @Nonnull final IHCConversionSettingsToNode aConversionSettings) {}
@Override @OverrideOnDemand @Nullable protected String internalGetText (@Nonnull final Locale aContentLocale) { return m_aTexts.get (aContentLocale); }
/** * Overwrite this method to create a custom {@link HCHead} implementation * * @return Never <code>null</code>. */ @Nonnull @OverrideOnDemand protected HCHead createHead () { return new HCHead (); }
/** * Overwrite this method to create a custom {@link HCBody} implementation * * @return Never <code>null</code>. */ @Nonnull @OverrideOnDemand protected HCBody createBody () { return new HCBody (); }
@OverrideOnDemand protected float getAsFloat (@Nonnull final String sCellText) { // Ensure that columns without text are sorted consistently compared to the // ones with non-numeric content if (sCellText.isEmpty ()) return Float.MIN_VALUE; return LocaleFormatter.parseFloat (sCellText, m_aParseLocale, 0); }