コード例 #1
0
  /**
   * Sets the resource bundle name node
   *
   * @param name resource bundle name node
   */
  public void setBundleNameNode(IdentifierNode name) {
    bundleNameNode = name;
    bundleNameNode.setParent(this);
    addToMap(SINGLE_VALUE, name.getName());

    IFileNode fileNode = (IFileNode) getAncestorOfType(IFileNode.class);
    if (fileNode instanceof IFileNodeAccumulator)
      ((IFileNodeAccumulator) fileNode).addRequiredResourceBundle(getBundleName());
  }
コード例 #2
0
 /**
  * Returns the string representation of the resource bundle name as found in metadata
  *
  * @return resource bundle name.
  */
 private String getBundleName() {
   return bundleNameNode != null ? bundleNameNode.getName() : "";
 }