/** * Return the resource version. * * @return the version */ public String getVersion() { String version = getStatutoryVersion(); if (null != version) { return version; } else if (m_directive.isAnonymous()) { return version; } else { return getStandardVersion(); } }
/** * Return the declard resource version. * * @return the statutory version */ public String getStatutoryVersion() { if (null == m_directive) { return null; } else { String version = m_directive.getVersion(); if ((null != version) || m_directive.isAnonymous()) { return version; } else { if (null != m_parent) { return m_parent.getStatutoryVersion(); } else if (!m_directive.getClassifier().equals(Classifier.LOCAL)) { return ANONYMOUS; } else { return null; } } } }
boolean isAnonymous() { if (null != m_directive) { return m_directive.isAnonymous(); } return false; }