Package org.apache.abdera.i18n.rfc4646

Examples of org.apache.abdera.i18n.rfc4646.Range


                return region.getPreferred().newSubtag();
            case PRIMARY:
                Language language = getEnum();
                return language.getPreferred().newSubtag();
            case SCRIPT:
                Script script = getEnum();
                return script.getPreferred().newSubtag();
            case VARIANT:
                Variant variant = getEnum();
                return variant.getPreferred().newSubtag();
            case EXTLANG:
                Extlang extlang = getEnum();
View Full Code Here


      case PRIMARY:
        Language e = getEnum();
        return e.isDeprecated();
      }
      case SCRIPT: {
        Script e = getEnum();
        return e.isDeprecated();
      }
      case REGION: {
        Region e = getEnum();
        return e.isDeprecated();
      }
      case VARIANT: {
        Variant e = getEnum();
        return e.isDeprecated();
      }
      case EXTLANG: {
        Extlang e = getEnum();
        return e.isDeprecated();
      }
      case EXTENSION: {
        Singleton e = getEnum();
        return e.isDeprecated();
      }
      default: return false;
    }
  }
View Full Code Here

        return region.getPreferred().newSubtag();
      case PRIMARY:
        Language language = getEnum();
        return language.getPreferred().newSubtag();
      case SCRIPT:
        Script script = getEnum();
        return script.getPreferred().newSubtag();
      case VARIANT:
        Variant variant = getEnum();
        return variant.getPreferred().newSubtag();
      case EXTLANG:
        Extlang extlang = getEnum();
View Full Code Here

            case EXTLANG: {
                Extlang e = getEnum();
                return e.isDeprecated();
            }
            case EXTENSION: {
                Singleton e = getEnum();
                return e.isDeprecated();
            }
            default:
                return false;
        }
    }
View Full Code Here

      case EXTLANG: {
        Extlang e = getEnum();
        return e.isDeprecated();
      }
      case EXTENSION: {
        Singleton e = getEnum();
        return e.isDeprecated();
      }
      default: return false;
    }
  }
View Full Code Here

            case REGION: {
                Region e = getEnum();
                return e.isDeprecated();
            }
            case VARIANT: {
                Variant e = getEnum();
                return e.isDeprecated();
            }
            case EXTLANG: {
                Extlang e = getEnum();
                return e.isDeprecated();
            }
            case EXTENSION: {
                Singleton e = getEnum();
                return e.isDeprecated();
            }
            default:
                return false;
        }
    }
View Full Code Here

                return language.getPreferred().newSubtag();
            case SCRIPT:
                Script script = getEnum();
                return script.getPreferred().newSubtag();
            case VARIANT:
                Variant variant = getEnum();
                return variant.getPreferred().newSubtag();
            case EXTLANG:
                Extlang extlang = getEnum();
                return extlang.getPreferred().newSubtag();
            case EXTENSION:
            case GRANDFATHERED:
View Full Code Here

      case REGION: {
        Region e = getEnum();
        return e.isDeprecated();
      }
      case VARIANT: {
        Variant e = getEnum();
        return e.isDeprecated();
      }
      case EXTLANG: {
        Extlang e = getEnum();
        return e.isDeprecated();
      }
      case EXTENSION: {
        Singleton e = getEnum();
        return e.isDeprecated();
      }
      default: return false;
    }
  }
View Full Code Here

        return language.getPreferred().newSubtag();
      case SCRIPT:
        Script script = getEnum();
        return script.getPreferred().newSubtag();
      case VARIANT:
        Variant variant = getEnum();
        return variant.getPreferred().newSubtag();
      case EXTLANG:
        Extlang extlang = getEnum();
        return extlang.getPreferred().newSubtag();
      case EXTENSION:
      case GRANDFATHERED:
View Full Code Here

        Array dataArray = Array.factory(DataType.FLOAT, section.getShape());
        GradsVariable gradsVar = findVar(v2);

        // Canonical ordering is ens, time, level, lat, lon
        int           rangeIdx  = 0;
        Range         ensRange  = (gradsDDF.getEnsembleDimension() != null)
                                  ? section.getRange(rangeIdx++)
                                  : new Range(0, 0);
        Range         timeRange = (section.getRank() > 2)
                                  ? section.getRange(rangeIdx++)
                                  : new Range(0, 0);
        Range         levRange  = (gradsVar.getNumLevels() > 0)
                                  ? section.getRange(rangeIdx++)
                                  : new Range(0, 0);
        Range         yRange    = section.getRange(rangeIdx++);
        Range         xRange    = section.getRange(rangeIdx);

        IndexIterator ii        = dataArray.getIndexIterator();

        // loop over ens
        for (int ensIdx = ensRange.first(); ensIdx <= ensRange.last();
View Full Code Here

TOP

Related Classes of org.apache.abdera.i18n.rfc4646.Range

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.