(Scott Phillips) Added the rend attribute to xrefs, at it says they should have in the DRI schema.

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2237 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Scott Phillips
2007-10-03 01:20:57 +00:00
parent b6bd305149
commit 8cc1f28f56

View File

@@ -121,6 +121,26 @@ public abstract class RichTextContainer extends TextContainer
Xref xref = addXref(target);
xref.addContent(characters);
}
/**
* Add a new reference to the character container. The xref element is a
* reference to an external document. The characters will be used as the
* visual part of the link's body
*
* @param target
* (Required) A target URL for the references a destination for
* the xref.
* @param characters
* (May be null) The link's body
* @param rend
* (May be null) Special rendering instructions.
*/
public void addXref(String target, String characters, String rend) throws WingException
{
Xref xref = new Xref(context, target, rend);
xref.addContent(characters);
contents.add(xref);
}
/**
* Add a new reference to the character container. The xref element is a
@@ -138,6 +158,26 @@ public abstract class RichTextContainer extends TextContainer
Xref xref = addXref(target);
xref.addContent(key);
}
/**
* Add a new reference to the character container. The xref element is a
* reference to an external document. The translated i18n key will be used
* as the visual part of the link's body
*
* @param target
* (Required) A target URL for the references a destination for
* the xref.
* @param key
* (Required) The link's body
* @param rend
* (May be null) Special rendering instructions
*/
public void addXref(String target, Message key, String rend) throws WingException
{
Xref xref = new Xref(context, target, rend);
xref.addContent(key);
contents.add(xref);
}
/**
* Add a figure element to the character container.