Exemplo n.º 1
0
 /**
  * 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();
   }
 }
Exemplo n.º 2
0
 /**
  * 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;
       }
     }
   }
 }
Exemplo n.º 3
0
 boolean isAnonymous() {
   if (null != m_directive) {
     return m_directive.isAnonymous();
   }
   return false;
 }