gmluppercorner.java

来自「google的gdata api包」· Java 代码 · 共 75 行

JAVA
75
字号
/* Copyright (c) 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.google.gdata.data.geo.impl;import com.google.gdata.data.ExtensionDescription;import com.google.gdata.data.geo.Namespaces;import com.google.gdata.data.geo.Point;/** * Point that represents the upper corner of a gml:Envelope. * *  */public class GmlUpperCorner extends PointConstruct {  static final String NAME = "upperCorner";  /**   * Constructs an empty gml:upperCorner element.   */  public GmlUpperCorner() {    super(Namespaces.GML_NAMESPACE, NAME);  }  /**   * Constructs a gml:upperCorner element with the given lat and lon.   */  public GmlUpperCorner(Double lat, Double lon) {    super(Namespaces.GML_NAMESPACE, NAME, lat, lon);  }  /**   * Constructs a gml:upperCorner element by copying the data from the   * given point.  If the given point is null an empty point will be created.   */  public GmlUpperCorner(Point copyFrom) {    super(Namespaces.GML_NAMESPACE, NAME, copyFrom);  }  /**   * Returns the suggested extension description with configurable   * repeatability.   */  public static ExtensionDescription getDefaultDescription(      boolean repeatable) {    ExtensionDescription desc = new ExtensionDescription();    desc.setExtensionClass(GmlUpperCorner.class);    desc.setNamespace(Namespaces.GML_NAMESPACE);    desc.setLocalName(NAME);    desc.setRepeatable(repeatable);    return desc;  }  /**   * Returns the suggested extension description and is repeatable.   */  public static ExtensionDescription getDefaultDescription() {    return getDefaultDescription(true);  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?