Ejemplo n.º 1
0
 /**
  * Returns the given attribute, inheriting from parent nodes if necessary.
  *
  * @param key the key to look up
  * @return COS value for the given key
  */
 protected COSBase getInheritableAttribute(COSName key) {
   if (dictionary.containsKey(key)) {
     return dictionary.getDictionaryObject(key);
   } else if (parent != null) {
     return parent.getInheritableAttribute(key);
   } else {
     return acroForm.getCOSObject().getDictionaryObject(key);
   }
 }
Ejemplo n.º 2
0
 /**
  * Returns the fully qualified name of the field, which is a concatenation of the names of all the
  * parents fields.
  *
  * @return the name of the field
  */
 public String getFullyQualifiedName() {
   String finalName = getPartialName();
   String parentName = parent != null ? parent.getFullyQualifiedName() : null;
   if (parentName != null) {
     if (finalName != null) {
       finalName = parentName + "." + finalName;
     } else {
       finalName = parentName;
     }
   }
   return finalName;
 }