/** * {@inheritDoc} */ @Override public String getTargetNamespace() { String tns = null; Model model = this; while (model instanceof BaseModel) { tns = Strings.trimToNull(((BaseModel)model).getModelAttribute(TARGET_NAMESPACE)); if (tns != null) { break; } model = model.getModelParent(); } return tns; }
/** * {@inheritDoc} */ @Override public String getTargetNamespace() { String tns = null; Model model = this; while (model instanceof BaseModel) { tns = Strings.trimToNull(((BaseModel)model).getModelAttribute(TARGET_NAMESPACE)); if (tns != null) { break; } model = model.getModelParent(); } return tns; }