mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
56 lines
1.2 KiB
Java
56 lines
1.2 KiB
Java
|
|
package org.alfresco.rest.api.model;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
import org.alfresco.service.namespace.QName;
|
|
|
|
/**
|
|
* @author Jamal Kaabi-Mofrad
|
|
*/
|
|
public abstract class AbstractClassModel extends AbstractCommonDetails
|
|
{
|
|
/* package */String parentName;
|
|
/* package */List<CustomModelProperty> properties = Collections.emptyList();
|
|
|
|
public String getParentName()
|
|
{
|
|
return this.parentName;
|
|
}
|
|
|
|
public void setParentName(String parentName)
|
|
{
|
|
this.parentName = parentName;
|
|
}
|
|
|
|
public List<CustomModelProperty> getProperties()
|
|
{
|
|
return this.properties;
|
|
}
|
|
|
|
public void setProperties(List<CustomModelProperty> properties)
|
|
{
|
|
this.properties = properties;
|
|
}
|
|
|
|
/* package */<T> List<T> setList(List<T> sourceList)
|
|
{
|
|
if (sourceList == null)
|
|
{
|
|
return Collections.<T> emptyList();
|
|
}
|
|
return new ArrayList<>(sourceList);
|
|
}
|
|
|
|
/* package */String getParentNameAsString(QName parentQName)
|
|
{
|
|
if (parentQName != null)
|
|
{
|
|
return parentQName.toPrefixString();
|
|
}
|
|
return null;
|
|
}
|
|
}
|