<p>Erzeugt ein neues Datumselement. </p>

@param   name        name of element
@param   index       index of element
@param   dmin        default minimum
@param   dmax        default maximum
@param   symbol      format symbol
@return  new element instance
335471
static IntegerDateElement create(
        String name,
        int index,
        int dmin,
        int dmax,
        char symbol
    ) {

        return new IntegerDateElement(
            name,
            index,
            Integer.valueOf(dmin),
            Integer.valueOf(dmax),
            symbol
        );

    }
318258
public String newIndex(final String name,
                         final String mappingPath) throws IndexException {
    try {
      final String newName = name + newIndexSuffix();

      final IndicesAdminClient idx = getAdminIdx();

      final CreateIndexRequestBuilder cirb = idx.prepareCreate(newName);

      final File f = new File(mappingPath);

      final byte[] sbBytes = Streams.copyToByteArray(f);

      cirb.setSource(sbBytes);

      final CreateIndexRequest cir = cirb.request();

      final ActionFuture<CreateIndexResponse> af = idx.create(cir);

      /*resp = */af.actionGet();

      //index(new UpdateInfo());

      info("Index created");

      return newName;
    } catch (final ElasticsearchException ese) {
      // Failed somehow
      error(ese);
      return null;
    } catch (final IndexException ie) {
      throw ie;
    } catch (final Throwable t) {
      error(t);
      throw new IndexException(t);
    }
  }
978389
public static Double checkLongitude(String name, Double longitude) {
        if (longitude == null) {
            throw new IndexException("{} required", name);
        } else if (longitude < MIN_LONGITUDE || longitude > MAX_LONGITUDE) {
            throw new IndexException("{} must be in range [{}, {}], but found {}",
                                     name,
                                     MIN_LONGITUDE,
                                     MAX_LONGITUDE,
                                     longitude);
        }
        return longitude;
    }
256804
public static double elementMin( DMatrix3 a ) {
        double min = a.a1;
        if( a.a2 < min ) min = a.a2;
        if( a.a3 < min ) min = a.a3;

        return min;
    }
466398
private static Element createRangeElement(Document document, String name,
			ConfigurableEmitter.Range range) {
		Element element = document.createElement(name);
		element.setAttribute("min", "" + range.getMin());
		element.setAttribute("max", "" + range.getMax());
		element.setAttribute("enabled", "" + range.isEnabled());

		return element;
	}
1235698
public static void setAtt(Element el, String name, int d) {
    el.setAttribute(name, Integer.toString(d));
  }
378110
public static SymbolToken symbol(final String name, final int val)
    {
        if (name == null) { throw new NullPointerException(); }
        if (val <= 0) { throw new IllegalArgumentException("Symbol value must be positive: " + val); }

        return new SymbolToken()
        {
            public String getText()
            {
                return name;
            }

            public String assumeText()
            {
                return name;
            }

            public int getSid()
            {
                return val;
            }

            @Override
            public String toString()
            {
                return "(symbol '" + getText() + "' " + getSid() + ")";
            }
        };
    }
953714
public Node getNamedItem(String name)
  {

    for (int n = dtm.getFirstAttribute(element); n != DTM.NULL;
            n = dtm.getNextAttribute(n))
    {
      if (dtm.getNodeName(n).equals(name))
        return dtm.getNode(n);
    }

    return null;
  }
221283
public static void setAtt(Element el, String name, double d) {
    el.setAttribute(name, fmt(d));
  }
1197598
public static double elementMin( DMatrix2x2 a ) {
        double min = a.a11;
        if( a.a12 < min ) min = a.a12;
        if( a.a21 < min ) min = a.a21;
        if( a.a22 < min ) min = a.a22;

        return min;
    }
418867
public boolean createSingleIndex(String indexName) throws
            ElasticsearchException {
        CreateIndexRequest indexRequest = new CreateIndexRequest(indexName);
        CreateIndexResponse res = this.client.admin().indices().create(indexRequest).actionGet();
        return indexExists(indexName);
    }
1064320
private String getMime(String name, String delimiter) {
		if (StringUtils.hasText(name)) {
			return name.substring(name.lastIndexOf(delimiter), name.length());
		}
		return null;
	}
547910
public SymbolType withName(String name) {
        return clone(marker, name, arrayCount, typeVariable, null, null);
    }
481346
public <V,T extends RiakIndex<V>> T removeIndex(RiakIndex.Name<T> name)
    {
        RiakIndex<?> removed = indexes.remove(name.getFullname());
        if (removed != null)
        {
            T index = name.wrap(removed).createIndex();
            return index;
        }
        else
        {
            return null;
        }
    }
38893
def addAxis(self, tag, name, minimum, maximum, default, warpMap=None):
        
        axisElement = ET.Element("axis")
        axisElement.attrib['name'] = name
        axisElement.attrib['tag'] = tag
        axisElement.attrib['minimum'] = str(minimum)
        axisElement.attrib['maximum'] = str(maximum)
        axisElement.attrib['default'] = str(default)
        if warpMap is not None:
            for a, b in warpMap:
                warpPt = ET.Element("map")
                warpPt.attrib['input'] = str(a)
                warpPt.attrib['output'] = str(b)
                axisElement.append(warpPt)
        self.root.findall('.axes')[0].append(axisElement)
79643
function createInstance(datum, index) {
    const selection = select(this);
    setInstance(this, {
      component, selection, destroy, datum, index,
    });
    create(selection, datum, index);
  }
1154590
@Override
  @Deprecated
  public final org.jdom2.Element setName(String value) {
    return super.setName(value);
  }