Package name for the generated class is make up of the base package
name, which is user settable, and the derived package name.  The
derived package name directly mirrors the file hierarchy of the JSP page.
@return the package name
507056
public String getServletPackageName() {
        if (isTagFile()) {
            String className = tagInfo.getTagClassName();
            int lastIndex = className.lastIndexOf('.');
            String pkgName = "";
            if (lastIndex != -1) {
                pkgName = className.substring(0, lastIndex);
            }
            return pkgName;
        } else {
            String dPackageName = getDerivedPackageName();
            if (dPackageName.length() == 0) {
                return basePackageName;
            }
            return basePackageName + '.' + getDerivedPackageName();
        }
    }
569399
public static String getPackageName(final String className) {
        int dotPos = className.lastIndexOf('.');
        if (dotPos < 0) {
            return "";
        }
        return className.substring(0, dotPos);
    }
365005
public Set<String> getTableNamesInvolvedInEntity() {
        Set<String> tableNames = newTreeSet();

        for (Attribute attribute : getCurrentAttributes()) {
            tableNames.add(attribute.getTableName());
        }

        return tableNames;
    }
567922
public String getJavaPackage() {
		String javaPackage = getJavaGroupId(); 
		if (!isGroupIdSuffixedWithArtifactId()) {
			javaPackage += "." + getJavaArtifactId(); 
		}
		return javaPackage.toLowerCase();
	}
586189
private String getBundleName() {
		if (StringUtils.isEmpty(annotation.bundle())) {
			final String lbundle = getClass().getPackage().getName() + "." + getConventionalName();
			LOGGER.debug("Bundle: {} based on conventional name.", lbundle);
			return lbundle;
		}

		final String lbundle = annotation.bundle();
		LOGGER.debug("Annotated bundle: {}", lbundle);
		return lbundle;
	}
975875
public String java(GeneratedPackage generatedPackage, String javaClassName) {
        generatedPackageRestriction(generatedPackage);
        return java(generatedPackage.getPackageName(), javaClassName);
    }
713428
@Override
   public String getEntityPackage()
   {
      JavaSourceFacet sourceFacet = getFaceted().getFacet(JavaSourceFacet.class);
      return sourceFacet.getBasePackage() + "." + JavaEEPackageConstants.DEFAULT_ENTITY_PACKAGE;
   }
1211412
protected String getHatboxTableName() {
      final String tableName;
      if (!StringUtils.hasUpperCase(getTableName())) {
         tableName = getTableName() + "_hatbox";
      } else {
         tableName = getTableName() + "_HATBOX";
      }
      return tableName;
   }
1283346
public function qualifiedName()
    {
        $parent =& $this->containingClass();
        if ($parent && $parent->name() != '' && $this->_package != $parent->name()) {
            return $this->_package.'\\'.$parent->name().'\\'.$this->_name;
        } else {
            return $this->_package.'\\'.$this->_name;
        }
    }
375881
private String parseOuterClassName() {
		StringBuilder sb = new StringBuilder();
		sb.append(parseJavaId());
		while (peekChar() == packageSeparator) { // '/' or '.'
			nextChar(packageSeparator);
			sb.append('.');
			sb.append(parseJavaId());
		}
		return sb.toString();
	}
878380
public Content getPackageName(PackageElement packageElement) {
        return packageElement == null || packageElement.isUnnamed()
                ? contents.defaultPackageLabel
                : getPackageLabel(packageElement.getQualifiedName());
    }
214141
public String getOriginalPackageName()
    {
        if (packageName == null)
            return null;

        String original = packageName.getLast();
        return original != null ? original : packageName.getValue();
    }
982890
public PackageInfoList getPackageInfo() {
        if (packageInfoSet == null) {
            return new PackageInfoList(1);
        }
        final PackageInfoList packageInfoList = new PackageInfoList(packageInfoSet);
        CollectionUtils.sortIfNotEmpty(packageInfoList);
        return packageInfoList;
    }
766789
public String getOriginalJavaPackageName()
    {
        if (javaPackageName == null)
            return null;

        String original = javaPackageName.getLast();
        return original != null ? original : javaPackageName.getValue();
    }
1064881
private String getEffectiveVisitorPackageName ()
  {
    if (this.packageName != null)
      return this.packageName.length () <= 0 ? VISITOR : this.packageName + '.' + VISITOR;
    if (this.visitorPackageName != null)
      return this.visitorPackageName;
    return VISITOR;
  }
146191
public String getPackageCategoryName() {
        if (hasAnnotations()) {
            String fileName = getAnnotations().iterator().next().getFileName();
            if (fileName.endsWith(".cs")) {
                return Messages.Tasks_NamespaceDetail();
            }
        }
        return Messages.Tasks_PackageDetail();
    }
180280
public String getFullyQualifiedName() {
        StringBuilder sb = new StringBuilder();
        if (packageName != null && !packageName.isEmpty()) {
            sb.append(getPackageName()).append(".");
        }

        if (outerType != null) {
            sb.append(outerType.getName()).append(".");
        }
        sb.append(getName());

        return sb.toString();
    }