001 // Copyright 2009 Waterken Inc. under the terms of the MIT X license
002 // found at http://www.opensource.org/licenses/mit-license.html
003 package org.ref_send.markup;
004
005 import org.ref_send.scope.Layout;
006 import org.ref_send.scope.Scope;
007
008 /**
009 * A reference with additional meta data.
010 */
011 public final class
012 Link {
013 private Link() {}
014
015 /**
016 * A {@link Link} maker.
017 */
018 static public final Layout<Link> Maker = Layout.define("href", "name");
019
020 /**
021 * Constructs an instance.
022 * @param href referent
023 * @param name hypertext
024 */
025 static public Scope<Link>
026 a(final Object href, final String name) { return Maker.make(href, name); }
027 }