/** * Add a new sublist to this list. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param type * (May be null) determines the list type. If this is blank the * list type is inferred from the context and use. * @return A new sub list. */ public List addList(String name, String type) throws WingException { List list = new List(context, name, type, null); contents.add(list); return list; }
/** * Add a new sublist to this list. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * @param type * (May be null) determines the list type. If this is blank the * list type is inferred from the context and use. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return A new sub list. */ public List addList(String name, String type, String rend) throws WingException { List list = new List(context, name, type, rend); contents.add(list); return list; }
/** * Add a new sublist to this item. Note that an item may contain either * characters (with formating & fields) or lists but not both. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * * @param type * (May be null) determines the list type. If this is blank the * list type is infered from the context and use. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return A new sub list. */ public List addList(String name, String type, String rend) throws WingException { List list = new List(context, name, type, rend); contents.add(list); return list; }
/** * append a list to the division. * * @param name * (Required) a local identifier used to differentiate the * element from its siblings. * * @param type * (May be null) an optional attribute to explicitly specify the * type of list. In the absence of this attribute, the type of a * list will be inferred from the presence and content of labels * on its items. Accepted values are found at * org.dspace.app.xmlui.xmltool.List.TYPES * @param rend * (May be null) a rendering hint used to override the default * display of the element. * * @return A new List */ public List addList(String name, String type, String rend) throws WingException { List list = new List(context, name, type, rend); contents.add(list); return list; }