Package org.opencms.acacia.client.export
Class CmsWrapperUtils
- java.lang.Object
-
- org.opencms.acacia.client.export.CmsWrapperUtils
-
public final class CmsWrapperUtils extends java.lang.Object
Utility class with helper methods for wrapping objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CmsEntityAttributeWrapper[]
arrayFromEntityAttributeList(java.util.List<org.opencms.acacia.shared.CmsEntityAttribute> attributes)
Creates an array of entity attribute wrappers for a list of entity attributes.static CmsEntityWrapper[]
arrayFromEntityList(java.util.List<org.opencms.acacia.shared.CmsEntity> entities)
Creates an array of entity wrappers for a list of entities.static java.lang.String[]
arrayFromStringList(java.util.List<java.lang.String> strings)
Converts a list of strings to an array.
-
-
-
Method Detail
-
arrayFromEntityAttributeList
public static CmsEntityAttributeWrapper[] arrayFromEntityAttributeList(java.util.List<org.opencms.acacia.shared.CmsEntityAttribute> attributes)
Creates an array of entity attribute wrappers for a list of entity attributes.- Parameters:
attributes
- the list of attributes- Returns:
- the array of attribute wrappers
-
arrayFromEntityList
public static CmsEntityWrapper[] arrayFromEntityList(java.util.List<org.opencms.acacia.shared.CmsEntity> entities)
Creates an array of entity wrappers for a list of entities.- Parameters:
entities
- the list of entities- Returns:
- the array of entity wrappers
-
arrayFromStringList
public static java.lang.String[] arrayFromStringList(java.util.List<java.lang.String> strings)
Converts a list of strings to an array.- Parameters:
strings
- the string list- Returns:
- the array of strings
-
-