/** * The default implementation of this method is to call * id.namespaceGetName(). Subclasses may override. * * @param id * the ID to get the name for. Must not be <code>null</code>. * @return String that is the unique name for the given id within this * Namespace. */ protected String getNameForID(BaseID id) { return id.namespaceGetName(); }
/** * The default implementation of this method is to call * id.namespaceGetName(). Subclasses may override. * * @param id * the ID to get the name for. Must not be <code>null</code>. * @return String that is the unique name for the given id within this * Namespace. */ protected String getNameForID(BaseID id) { return id.namespaceGetName(); }
/** * Called by {@link Namespace#toExternalForm(BaseID)}. * * @return String that represents this ID. Default implementation is to * return * * <pre> * namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); * </pre> */ protected String namespaceToExternalForm() { return namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); }
/** * Called by {@link Namespace#toExternalForm(BaseID)}. * * @return String that represents this ID. Default implementation is to * return * * <pre> * namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); * </pre> */ protected String namespaceToExternalForm() { return namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); }