chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r934897 [3/5] - in /incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src: main/java/org/apache/chemistry/opencmis/commons/impl/ main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ t...
Date Fri, 16 Apr 2010 14:14:11 GMT
Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JaxBHelper.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JaxBHelper.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JaxBHelper.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JaxBHelper.java Fri Apr 16 14:14:09 2010
@@ -43,96 +43,90 @@ import org.apache.chemistry.opencmis.com
  */
 public final class JaxBHelper {
 
-  private static final QName CMIS_OBJECT = new QName(Constants.NAMESPACE_RESTATOM, "object");
-  private static final QName CMIS_TYPE_DEFINITION = new QName(Constants.NAMESPACE_RESTATOM, "type");
-  private static final QName CMIS_REPOSITORY_INFO = new QName(Constants.NAMESPACE_RESTATOM,
-      "repositoryInfo");
-
-  public static final ObjectFactory CMIS_OBJECT_FACTORY = new ObjectFactory();
-  public static final CMISExtraObjectFactory CMIS_EXTRA_OBJECT_FACTORY = new CMISExtraObjectFactory();
-  public static final JAXBContext CONTEXT;
-  static {
-    JAXBContext jc = null;
-    try {
-      jc = JAXBContext.newInstance(ObjectFactory.class, CMISExtraObjectFactory.class);
-    }
-    catch (JAXBException e) {
-      e.printStackTrace();
-    }
-    CONTEXT = jc;
-  }
-
-  @XmlRegistry
-  public static class CMISExtraObjectFactory {
-    @XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "object")
-    public JAXBElement<CmisObjectType> createObject(CmisObjectType value) {
-      return new JAXBElement<CmisObjectType>(CMIS_OBJECT, CmisObjectType.class, value);
-    }
-
-    @XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "type")
-    public JAXBElement<CmisTypeDefinitionType> createTypeDefinition(CmisTypeDefinitionType value) {
-      return new JAXBElement<CmisTypeDefinitionType>(CMIS_TYPE_DEFINITION,
-          CmisTypeDefinitionType.class, value);
-    }
-
-    @XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "repositoryInfo")
-    public JAXBElement<CmisRepositoryInfoType> createRepositoryInfo(CmisRepositoryInfoType value) {
-      return new JAXBElement<CmisRepositoryInfoType>(CMIS_REPOSITORY_INFO,
-          CmisRepositoryInfoType.class, value);
-    }
-  }
-
-  /**
-   * Private constructor.
-   */
-  private JaxBHelper() {
-  }
-
-  /**
-   * Creates an Unmarshaller.
-   */
-  public static Unmarshaller createUnmarshaller() throws JAXBException {
-    return CONTEXT.createUnmarshaller();
-  }
-
-  /**
-   * Creates an Marshaller.
-   */
-  public static Marshaller createMarshaller() throws JAXBException {
-    return CONTEXT.createMarshaller();
-  }
-
-  /**
-   * Marshals an object to a stream.
-   */
-  public static <T> void marshal(JAXBElement<T> object, OutputStream out, boolean fragment)
-      throws JAXBException {
-    if (object == null) {
-      return;
-    }
-
-    Marshaller m = CONTEXT.createMarshaller();
-    if (fragment) {
-      m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
-    }
-
-    m.marshal(object, out);
-  }
-
-  /**
-   * Marshals an object to a XMLStreamWriter.
-   */
-  public static void marshal(Object object, XMLStreamWriter out, boolean fragment)
-      throws JAXBException {
-    if (object == null) {
-      return;
-    }
-
-    Marshaller m = CONTEXT.createMarshaller();
-    if (fragment) {
-      m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
-    }
+	private static final QName CMIS_OBJECT = new QName(Constants.NAMESPACE_RESTATOM, "object");
+	private static final QName CMIS_TYPE_DEFINITION = new QName(Constants.NAMESPACE_RESTATOM, "type");
+	private static final QName CMIS_REPOSITORY_INFO = new QName(Constants.NAMESPACE_RESTATOM, "repositoryInfo");
+
+	public static final ObjectFactory CMIS_OBJECT_FACTORY = new ObjectFactory();
+	public static final CMISExtraObjectFactory CMIS_EXTRA_OBJECT_FACTORY = new CMISExtraObjectFactory();
+	public static final JAXBContext CONTEXT;
+	static {
+		JAXBContext jc = null;
+		try {
+			jc = JAXBContext.newInstance(ObjectFactory.class, CMISExtraObjectFactory.class);
+		} catch (JAXBException e) {
+			e.printStackTrace();
+		}
+		CONTEXT = jc;
+	}
+
+	@XmlRegistry
+	public static class CMISExtraObjectFactory {
+		@XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "object")
+		public JAXBElement<CmisObjectType> createObject(CmisObjectType value) {
+			return new JAXBElement<CmisObjectType>(CMIS_OBJECT, CmisObjectType.class, value);
+		}
+
+		@XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "type")
+		public JAXBElement<CmisTypeDefinitionType> createTypeDefinition(CmisTypeDefinitionType value) {
+			return new JAXBElement<CmisTypeDefinitionType>(CMIS_TYPE_DEFINITION, CmisTypeDefinitionType.class, value);
+		}
+
+		@XmlElementDecl(namespace = Constants.NAMESPACE_RESTATOM, name = "repositoryInfo")
+		public JAXBElement<CmisRepositoryInfoType> createRepositoryInfo(CmisRepositoryInfoType value) {
+			return new JAXBElement<CmisRepositoryInfoType>(CMIS_REPOSITORY_INFO, CmisRepositoryInfoType.class, value);
+		}
+	}
+
+	/**
+	 * Private constructor.
+	 */
+	private JaxBHelper() {
+	}
+
+	/**
+	 * Creates an Unmarshaller.
+	 */
+	public static Unmarshaller createUnmarshaller() throws JAXBException {
+		return CONTEXT.createUnmarshaller();
+	}
+
+	/**
+	 * Creates an Marshaller.
+	 */
+	public static Marshaller createMarshaller() throws JAXBException {
+		return CONTEXT.createMarshaller();
+	}
+
+	/**
+	 * Marshals an object to a stream.
+	 */
+	public static <T> void marshal(JAXBElement<T> object, OutputStream out, boolean fragment) throws JAXBException {
+		if (object == null) {
+			return;
+		}
+
+		Marshaller m = CONTEXT.createMarshaller();
+		if (fragment) {
+			m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
+		}
+
+		m.marshal(object, out);
+	}
+
+	/**
+	 * Marshals an object to a XMLStreamWriter.
+	 */
+	public static void marshal(Object object, XMLStreamWriter out, boolean fragment) throws JAXBException {
+		if (object == null) {
+			return;
+		}
+
+		Marshaller m = CONTEXT.createMarshaller();
+		if (fragment) {
+			m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
+		}
 
-    m.marshal(object, out);
-  }
+		m.marshal(object, out);
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/ReturnVersion.java Fri Apr 16 14:14:09 2010
@@ -26,24 +26,24 @@ package org.apache.chemistry.opencmis.co
  */
 public enum ReturnVersion {
 
-  THIS("this"), LATEST("latest"), LASTESTMAJOR("latestmajor");
-  private final String value;
+	THIS("this"), LATEST("latest"), LASTESTMAJOR("latestmajor");
+	private final String value;
 
-  ReturnVersion(String v) {
-    value = v;
-  }
+	ReturnVersion(String v) {
+		value = v;
+	}
 
-  public String value() {
-    return value;
-  }
+	public String value() {
+		return value;
+	}
 
-  public static ReturnVersion fromValue(String v) {
-    for (ReturnVersion c : ReturnVersion.values()) {
-      if (c.value.equals(v)) {
-        return c;
-      }
-    }
-    throw new IllegalArgumentException(v);
-  }
+	public static ReturnVersion fromValue(String v) {
+		for (ReturnVersion c : ReturnVersion.values()) {
+			if (c.value.equals(v)) {
+				return c;
+			}
+		}
+		throw new IllegalArgumentException(v);
+	}
 
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/UrlBuilder.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/UrlBuilder.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/UrlBuilder.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/UrlBuilder.java Fri Apr 16 14:14:09 2010
@@ -35,162 +35,153 @@ import org.apache.chemistry.opencmis.com
  */
 public class UrlBuilder {
 
-  private StringBuilder fUrl;
-  private StringBuilder fQuery;
+	private StringBuilder fUrl;
+	private StringBuilder fQuery;
 
-  /**
-   * Constructor.
-   * 
-   * @param url
-   *          initial URL
-   */
-  public UrlBuilder(String url) {
-    if (url == null) {
-      throw new IllegalArgumentException("URL must be set");
-    }
-
-    fUrl = new StringBuilder();
-    fQuery = new StringBuilder();
-
-    int qm = url.indexOf('?');
-    if (qm == -1) {
-      fUrl.append(url);
-    }
-    else {
-      fUrl.append(url.substring(0, qm));
-      if (qm < url.length()) {
-        fQuery.append(url.substring(qm + 1));
-      }
-    }
-  }
-
-  /**
-   * Constructor.
-   * 
-   * @param scheme
-   *          scheme
-   * @param host
-   *          host
-   * @param port
-   *          port
-   * @param path
-   *          path
-   */
-  public UrlBuilder(String scheme, String host, int port, String path) {
-
-    if ("http".equalsIgnoreCase(scheme) && (port == 80)) {
-      port = -1;
-    }
-    if ("https".equalsIgnoreCase(scheme) && (port == 443)) {
-      port = -1;
-    }
-
-    fUrl = new StringBuilder();
-    fQuery = new StringBuilder();
-
-    fUrl.append(scheme);
-    fUrl.append("://");
-    fUrl.append(host);
-    if (port > 0) {
-      fUrl.append(":" + port);
-    }
-    if (path != null) {
-      fUrl.append(path);
-    }
-  }
-
-  /**
-   * Copy constructor.
-   */
-  public UrlBuilder(UrlBuilder urlBuilder) {
-    fUrl = new StringBuilder(urlBuilder.fUrl);
-    fQuery = new StringBuilder(urlBuilder.fQuery);
-  }
-
-  /**
-   * Adds a parameter to the URL.
-   * 
-   * @param name
-   *          parameter name
-   * @param value
-   *          parameter value
-   */
-  public void addParameter(String name, Object value) {
-    if ((name == null) || (value == null)) {
-      return;
-    }
-
-    String valueStr = normalizeParameter(value);
-
-    if (fQuery.length() > 0) {
-      fQuery.append('&');
-    }
-    fQuery.append(name);
-    fQuery.append("=");
-    try {
-      fQuery.append(URLEncoder.encode(valueStr, "UTF-8"));
-    }
-    catch (UnsupportedEncodingException e) {
-    }
-  }
-
-  /**
-   * Adds a path segment to the URL.
-   * 
-   * @param pathSegment
-   *          the path segment.
-   */
-  public void addPath(String pathSegment) {
-    if ((pathSegment == null) || (pathSegment.length() == 0)) {
-      return;
-    }
-
-    if (fUrl.charAt(fUrl.length() - 1) != '/') {
-      fUrl.append('/');
-    }
-
-    if (pathSegment.charAt(0) == '/') {
-      pathSegment = pathSegment.substring(1);
-    }
-
-    try {
-      fUrl.append(URLEncoder.encode(pathSegment, "UTF-8"));
-    }
-    catch (UnsupportedEncodingException e) {
-    }
-  }
-
-  /**
-   * Converts an object to a String that can be used as a parameter value.
-   */
-  public static String normalizeParameter(Object value) {
-    if (value == null) {
-      return null;
-    }
-    else if (value instanceof IncludeRelationships) {
-      return ((IncludeRelationships) value).value();
-    }
-    else if (value instanceof VersioningState) {
-      return ((VersioningState) value).value();
-    }
-    else if (value instanceof UnfileObject) {
-      return ((UnfileObject) value).value();
-    }
-    else if (value instanceof RelationshipDirection) {
-      return ((RelationshipDirection) value).value();
-    }
-    else if (value instanceof ReturnVersion) {
-      return ((ReturnVersion) value).value();
-    }
-    else if (value instanceof AclPropagation) {
-      return ((AclPropagation) value).value();
-    }
-
-    return value.toString();
-  }
-
-  @Override
-  public String toString() {
-    return fUrl.toString() + (fQuery.length() == 0 ? "" : "?" + fQuery.toString());
-  }
+	/**
+	 * Constructor.
+	 * 
+	 * @param url
+	 *            initial URL
+	 */
+	public UrlBuilder(String url) {
+		if (url == null) {
+			throw new IllegalArgumentException("URL must be set");
+		}
+
+		fUrl = new StringBuilder();
+		fQuery = new StringBuilder();
+
+		int qm = url.indexOf('?');
+		if (qm == -1) {
+			fUrl.append(url);
+		} else {
+			fUrl.append(url.substring(0, qm));
+			if (qm < url.length()) {
+				fQuery.append(url.substring(qm + 1));
+			}
+		}
+	}
+
+	/**
+	 * Constructor.
+	 * 
+	 * @param scheme
+	 *            scheme
+	 * @param host
+	 *            host
+	 * @param port
+	 *            port
+	 * @param path
+	 *            path
+	 */
+	public UrlBuilder(String scheme, String host, int port, String path) {
+
+		if ("http".equalsIgnoreCase(scheme) && (port == 80)) {
+			port = -1;
+		}
+		if ("https".equalsIgnoreCase(scheme) && (port == 443)) {
+			port = -1;
+		}
+
+		fUrl = new StringBuilder();
+		fQuery = new StringBuilder();
+
+		fUrl.append(scheme);
+		fUrl.append("://");
+		fUrl.append(host);
+		if (port > 0) {
+			fUrl.append(":" + port);
+		}
+		if (path != null) {
+			fUrl.append(path);
+		}
+	}
+
+	/**
+	 * Copy constructor.
+	 */
+	public UrlBuilder(UrlBuilder urlBuilder) {
+		fUrl = new StringBuilder(urlBuilder.fUrl);
+		fQuery = new StringBuilder(urlBuilder.fQuery);
+	}
+
+	/**
+	 * Adds a parameter to the URL.
+	 * 
+	 * @param name
+	 *            parameter name
+	 * @param value
+	 *            parameter value
+	 */
+	public void addParameter(String name, Object value) {
+		if ((name == null) || (value == null)) {
+			return;
+		}
+
+		String valueStr = normalizeParameter(value);
+
+		if (fQuery.length() > 0) {
+			fQuery.append('&');
+		}
+		fQuery.append(name);
+		fQuery.append("=");
+		try {
+			fQuery.append(URLEncoder.encode(valueStr, "UTF-8"));
+		} catch (UnsupportedEncodingException e) {
+		}
+	}
+
+	/**
+	 * Adds a path segment to the URL.
+	 * 
+	 * @param pathSegment
+	 *            the path segment.
+	 */
+	public void addPath(String pathSegment) {
+		if ((pathSegment == null) || (pathSegment.length() == 0)) {
+			return;
+		}
+
+		if (fUrl.charAt(fUrl.length() - 1) != '/') {
+			fUrl.append('/');
+		}
+
+		if (pathSegment.charAt(0) == '/') {
+			pathSegment = pathSegment.substring(1);
+		}
+
+		try {
+			fUrl.append(URLEncoder.encode(pathSegment, "UTF-8"));
+		} catch (UnsupportedEncodingException e) {
+		}
+	}
+
+	/**
+	 * Converts an object to a String that can be used as a parameter value.
+	 */
+	public static String normalizeParameter(Object value) {
+		if (value == null) {
+			return null;
+		} else if (value instanceof IncludeRelationships) {
+			return ((IncludeRelationships) value).value();
+		} else if (value instanceof VersioningState) {
+			return ((VersioningState) value).value();
+		} else if (value instanceof UnfileObject) {
+			return ((UnfileObject) value).value();
+		} else if (value instanceof RelationshipDirection) {
+			return ((RelationshipDirection) value).value();
+		} else if (value instanceof ReturnVersion) {
+			return ((ReturnVersion) value).value();
+		} else if (value instanceof AclPropagation) {
+			return ((AclPropagation) value).value();
+		}
+
+		return value.toString();
+	}
+
+	@Override
+	public String toString() {
+		return fUrl.toString() + (fQuery.length() == 0 ? "" : "?" + fQuery.toString());
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractExtensionData.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractExtensionData.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractExtensionData.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractExtensionData.java Fri Apr 16 14:14:09 2010
@@ -30,24 +30,30 @@ import org.apache.chemistry.opencmis.com
  */
 public abstract class AbstractExtensionData implements ExtensionsData {
 
-  private List<Object> fExtensions;
+	private List<Object> fExtensions;
 
-  /* (non-Javadoc)
-   * @see org.apache.opencmis.client.provider.ExtensionsData#getExtensions()
-   */
-  public List<Object> getExtensions() {
-    return fExtensions;
-  }
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.ExtensionsData#getExtensions()
+	 */
+	public List<Object> getExtensions() {
+		return fExtensions;
+	}
 
-  /* (non-Javadoc)
-   * @see org.apache.opencmis.client.provider.ExtensionsData#setExtensions(java.util.List)
-   */
-  public void setExtensions(List<Object> extensions) {
-    fExtensions = extensions;
-  }
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.ExtensionsData#setExtensions(java
+	 * .util.List)
+	 */
+	public void setExtensions(List<Object> extensions) {
+		fExtensions = extensions;
+	}
 
-  @Override
-  public String toString() {
-    return "[extensions=" + fExtensions + "]";
-  }
+	@Override
+	public String toString() {
+		return "[extensions=" + fExtensions + "]";
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyData.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyData.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyData.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyData.java Fri Apr 16 14:14:09 2010
@@ -26,116 +26,113 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Abstract property data implementation.
- *
+ * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
-public abstract class AbstractPropertyData<T> extends AbstractExtensionData implements
-    PropertyData<T> {
+public abstract class AbstractPropertyData<T> extends AbstractExtensionData implements PropertyData<T> {
 
-  private String fId;
-  private String fDisplayName;
-  private String fLocalName;
-  private String fQueryName;
-
-  private List<T> fValues;
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getId()
-   */
-  public String getId() {
-    return fId;
-  }
-
-  public void setId(String id) {
-    fId = id;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getDisplayName()
-   */
-  public String getDisplayName() {
-    return fDisplayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    fDisplayName = displayName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getLocalName()
-   */
-  public String getLocalName() {
-    return fLocalName;
-  }
-
-  public void setLocalName(String localName) {
-    fLocalName = localName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getQueryName()
-   */
-  public String getQueryName() {
-    return fQueryName;
-  }
-
-  public void setQueryName(String queryName) {
-    fQueryName = queryName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getValues()
-   */
-  public List<T> getValues() {
-    return fValues;
-  }
-
-  public void setValues(List<T> values) {
-    if (values == null) {
-      fValues = Collections.emptyList();
-    }
-    else {
-      fValues = values;
-    }
-  }
-
-  public void setValue(T value) {
-    if (value == null) {
-      fValues = Collections.emptyList();
-    }
-    else {
-      fValues = new ArrayList<T>(1);
-      fValues.add(value);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.PropertyData#getFirstValue()
-   */
-  public T getFirstValue() {
-    if ((fValues != null) && (!fValues.isEmpty())) {
-      return fValues.get(0);
-    }
-
-    return null;
-  }
-
-  @Override
-  public String toString() {
-    return "Property [id=" + fId + ", display Name=" + fDisplayName + ", local name=" + fLocalName
-        + ", query name=" + fQueryName + ", values=" + fValues + "]" + super.toString();
-  }
+	private String fId;
+	private String fDisplayName;
+	private String fLocalName;
+	private String fQueryName;
+
+	private List<T> fValues;
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getId()
+	 */
+	public String getId() {
+		return fId;
+	}
+
+	public void setId(String id) {
+		fId = id;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getDisplayName()
+	 */
+	public String getDisplayName() {
+		return fDisplayName;
+	}
+
+	public void setDisplayName(String displayName) {
+		fDisplayName = displayName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getLocalName()
+	 */
+	public String getLocalName() {
+		return fLocalName;
+	}
+
+	public void setLocalName(String localName) {
+		fLocalName = localName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getQueryName()
+	 */
+	public String getQueryName() {
+		return fQueryName;
+	}
+
+	public void setQueryName(String queryName) {
+		fQueryName = queryName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getValues()
+	 */
+	public List<T> getValues() {
+		return fValues;
+	}
+
+	public void setValues(List<T> values) {
+		if (values == null) {
+			fValues = Collections.emptyList();
+		} else {
+			fValues = values;
+		}
+	}
+
+	public void setValue(T value) {
+		if (value == null) {
+			fValues = Collections.emptyList();
+		} else {
+			fValues = new ArrayList<T>(1);
+			fValues.add(value);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyData#getFirstValue()
+	 */
+	public T getFirstValue() {
+		if ((fValues != null) && (!fValues.isEmpty())) {
+			return fValues.get(0);
+		}
+
+		return null;
+	}
+
+	@Override
+	public String toString() {
+		return "Property [id=" + fId + ", display Name=" + fDisplayName + ", local name=" + fLocalName
+				+ ", query name=" + fQueryName + ", values=" + fValues + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractPropertyDefinition.java Fri Apr 16 14:14:09 2010
@@ -32,249 +32,269 @@ import org.apache.chemistry.opencmis.com
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
-public abstract class AbstractPropertyDefinition<T> extends AbstractExtensionData implements
-    PropertyDefinition<T> {
+public abstract class AbstractPropertyDefinition<T> extends AbstractExtensionData implements PropertyDefinition<T> {
 
-  private static final long serialVersionUID = 1L;
+	private static final long serialVersionUID = 1L;
 
-  private String fId;
-  private String fLocalName;
-  private String fLocalNamespace;
-  private String fQueryName;
-  private String fDisplayName;
-  private String fDescription;
-  private PropertyType fPropertyType;
-  private Cardinality fCardinality;
-  private List<Choice<T>> fChoiceList;
-  private List<T> fDefaultValue;
-  private Updatability fUpdatability;
-  private Boolean fIsInherited;
-  private Boolean fIsQueryable;
-  private Boolean fIsOrderable;
-  private Boolean fIsRequired;
-  private Boolean fIsOpenChoice;
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getId()
-   */
-  public String getId() {
-    return fId;
-  }
-
-  public void setId(String id) {
-    fId = id;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getLocalName()
-   */
-  public String getLocalName() {
-    return fLocalName;
-  }
-
-  public void setLocalName(String localName) {
-    fLocalName = localName;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getLocalNamespace()
-   */
-  public String getLocalNamespace() {
-    return fLocalNamespace;
-  }
-
-  public void setLocalNamespace(String localNamespace) {
-    fLocalNamespace = localNamespace;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getQueryName()
-   */
-  public String getQueryName() {
-    return fQueryName;
-  }
-
-  public void setQueryName(String queryName) {
-    fQueryName = queryName;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getDisplayName()
-   */
-  public String getDisplayName() {
-    return fDisplayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    fDisplayName = displayName;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getDescription()
-   */
-  public String getDescription() {
-    return fDescription;
-  }
-
-  public void setDescription(String description) {
-    fDescription = description;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getPropertyType()
-   */
-  public PropertyType getPropertyType() {
-    return fPropertyType;
-  }
-
-  public void setPropertyType(PropertyType propertyType) {
-    fPropertyType = propertyType;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getCardinality()
-   */
-  public Cardinality getCardinality() {
-    return fCardinality;
-  }
-
-  public void setCardinality(Cardinality cardinality) {
-    fCardinality = cardinality;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getChoices()
-   */
-  public List<Choice<T>> getChoices() {
-    return fChoiceList;
-  }
-
-  public void setChoices(List<Choice<T>> choiceList) {
-    fChoiceList = choiceList;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getDefaultValue()
-   */
-  public List<T> getDefaultValue() {
-    return fDefaultValue;
-  }
-
-  public void setDefaultValue(List<T> defaultValue) {
-    fDefaultValue = defaultValue;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getUpdatability()
-   */
-  public Updatability getUpdatability() {
-    return fUpdatability;
-  }
-
-  public void setUpdatability(Updatability updatability) {
-    fUpdatability = updatability;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#isInherited()
-   */
-  public Boolean isInherited() {
-    return fIsInherited;
-  }
-
-  public void setIsInherited(Boolean isInherited) {
-    fIsInherited = isInherited;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#isQueryable()
-   */
-  public Boolean isQueryable() {
-    return fIsQueryable;
-  }
-
-  public void setIsQueryable(Boolean isQueryable) {
-    fIsQueryable = isQueryable;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#isOrderable()
-   */
-  public Boolean isOrderable() {
-    return fIsOrderable;
-  }
-
-  public void setIsOrderable(Boolean isOrderable) {
-    fIsOrderable = isOrderable;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#isRequired()
-   */
-  public Boolean isRequired() {
-    return fIsRequired;
-  }
-
-  public void setIsRequired(Boolean isRequired) {
-    fIsRequired = isRequired;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.PropertyDefinitionData#isOpenChoice()
-   */
-  public Boolean isOpenChoice() {
-    return fIsOpenChoice;
-  }
-
-  public void setIsOpenChoice(Boolean isOpenChoice) {
-    fIsOpenChoice = isOpenChoice;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Property Definition [id=" + fId + ", display name=" + fDisplayName + ", description="
-        + fDescription + ", local name=" + fLocalName + ", local namespace=" + fLocalNamespace
-        + ", query name=" + fQueryName + ", property type=" + fPropertyType + ", cardinality="
-        + fCardinality + ", choice list=" + fChoiceList + ", default value=" + fDefaultValue
-        + ", is inherited=" + fIsInherited + ", is open choice=" + fIsOpenChoice
-        + ", is queryable=" + fIsQueryable + ", is required=" + fIsRequired + ", updatability="
-        + fUpdatability + "]" + super.toString();
-  }
+	private String fId;
+	private String fLocalName;
+	private String fLocalNamespace;
+	private String fQueryName;
+	private String fDisplayName;
+	private String fDescription;
+	private PropertyType fPropertyType;
+	private Cardinality fCardinality;
+	private List<Choice<T>> fChoiceList;
+	private List<T> fDefaultValue;
+	private Updatability fUpdatability;
+	private Boolean fIsInherited;
+	private Boolean fIsQueryable;
+	private Boolean fIsOrderable;
+	private Boolean fIsRequired;
+	private Boolean fIsOpenChoice;
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.PropertyDefinitionData#getId()
+	 */
+	public String getId() {
+		return fId;
+	}
+
+	public void setId(String id) {
+		fId = id;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getLocalName()
+	 */
+	public String getLocalName() {
+		return fLocalName;
+	}
+
+	public void setLocalName(String localName) {
+		fLocalName = localName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getLocalNamespace
+	 * ()
+	 */
+	public String getLocalNamespace() {
+		return fLocalNamespace;
+	}
+
+	public void setLocalNamespace(String localNamespace) {
+		fLocalNamespace = localNamespace;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getQueryName()
+	 */
+	public String getQueryName() {
+		return fQueryName;
+	}
+
+	public void setQueryName(String queryName) {
+		fQueryName = queryName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getDisplayName
+	 * ()
+	 */
+	public String getDisplayName() {
+		return fDisplayName;
+	}
+
+	public void setDisplayName(String displayName) {
+		fDisplayName = displayName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getDescription
+	 * ()
+	 */
+	public String getDescription() {
+		return fDescription;
+	}
+
+	public void setDescription(String description) {
+		fDescription = description;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getPropertyType
+	 * ()
+	 */
+	public PropertyType getPropertyType() {
+		return fPropertyType;
+	}
+
+	public void setPropertyType(PropertyType propertyType) {
+		fPropertyType = propertyType;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getCardinality
+	 * ()
+	 */
+	public Cardinality getCardinality() {
+		return fCardinality;
+	}
+
+	public void setCardinality(Cardinality cardinality) {
+		fCardinality = cardinality;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getChoices()
+	 */
+	public List<Choice<T>> getChoices() {
+		return fChoiceList;
+	}
+
+	public void setChoices(List<Choice<T>> choiceList) {
+		fChoiceList = choiceList;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getDefaultValue
+	 * ()
+	 */
+	public List<T> getDefaultValue() {
+		return fDefaultValue;
+	}
+
+	public void setDefaultValue(List<T> defaultValue) {
+		fDefaultValue = defaultValue;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#getUpdatability
+	 * ()
+	 */
+	public Updatability getUpdatability() {
+		return fUpdatability;
+	}
+
+	public void setUpdatability(Updatability updatability) {
+		fUpdatability = updatability;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#isInherited()
+	 */
+	public Boolean isInherited() {
+		return fIsInherited;
+	}
+
+	public void setIsInherited(Boolean isInherited) {
+		fIsInherited = isInherited;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#isQueryable()
+	 */
+	public Boolean isQueryable() {
+		return fIsQueryable;
+	}
+
+	public void setIsQueryable(Boolean isQueryable) {
+		fIsQueryable = isQueryable;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#isOrderable()
+	 */
+	public Boolean isOrderable() {
+		return fIsOrderable;
+	}
+
+	public void setIsOrderable(Boolean isOrderable) {
+		fIsOrderable = isOrderable;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#isRequired()
+	 */
+	public Boolean isRequired() {
+		return fIsRequired;
+	}
+
+	public void setIsRequired(Boolean isRequired) {
+		fIsRequired = isRequired;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.PropertyDefinitionData#isOpenChoice()
+	 */
+	public Boolean isOpenChoice() {
+		return fIsOpenChoice;
+	}
+
+	public void setIsOpenChoice(Boolean isOpenChoice) {
+		fIsOpenChoice = isOpenChoice;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Property Definition [id=" + fId + ", display name=" + fDisplayName + ", description=" + fDescription
+				+ ", local name=" + fLocalName + ", local namespace=" + fLocalNamespace + ", query name=" + fQueryName
+				+ ", property type=" + fPropertyType + ", cardinality=" + fCardinality + ", choice list=" + fChoiceList
+				+ ", default value=" + fDefaultValue + ", is inherited=" + fIsInherited + ", is open choice="
+				+ fIsOpenChoice + ", is queryable=" + fIsQueryable + ", is required=" + fIsRequired + ", updatability="
+				+ fUpdatability + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractTypeDefinition.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractTypeDefinition.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractTypeDefinition.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AbstractTypeDefinition.java Fri Apr 16 14:14:09 2010
@@ -27,302 +27,315 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Abstract type definition data implementation.
- *
+ * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
-public abstract class AbstractTypeDefinition extends AbstractExtensionData implements
-    TypeDefinition, Cloneable {
+public abstract class AbstractTypeDefinition extends AbstractExtensionData implements TypeDefinition, Cloneable {
 
-  private static final long serialVersionUID = 1L;
+	private static final long serialVersionUID = 1L;
 
-  private String fId;
-  private String fLocalName;
-  private String fLocalNamespace;
-  private String fQueryName;
-  private String fDisplayName;
-  private String fDescription;
-  private BaseTypeId fBaseId;
-  private String fParentId;
-  private Boolean fIsCreatable;
-  private Boolean fIsFileable;
-  private Boolean fIsQueryable;
-  private Boolean fIsIncludedInSupertypeQuery;
-  private Boolean fIsFulltextIndexed;
-  private Boolean fIsControllableACL;
-  private Boolean fIsControllablePolicy;
-  private Map<String, PropertyDefinition<?>> fPropertyDefinitions;
-
-  public void initialize(TypeDefinition typeDefinition) {
-    setId(typeDefinition.getId());
-    setLocalName(typeDefinition.getLocalName());
-    setLocalNamespace(typeDefinition.getLocalNamespace());
-    setQueryName(typeDefinition.getQueryName());
-    setDisplayName(typeDefinition.getDisplayName());
-    setDescription(typeDefinition.getDescription());
-    setBaseTypeId(typeDefinition.getBaseTypeId());
-    setParentTypeId(typeDefinition.getParentTypeId());
-    setIsCreatable(typeDefinition.isCreatable());
-    setIsFileable(typeDefinition.isFileable());
-    setIsQueryable(typeDefinition.isQueryable());
-    setIsIncludedInSupertypeQuery(typeDefinition.isIncludedInSupertypeQuery());
-    setIsFulltextIndexed(typeDefinition.isFulltextIndexed());
-    setIsControllableAcl(typeDefinition.isControllableAcl());
-    setIsControllablePolicy(typeDefinition.isControllablePolicy());
-    setPropertyDefinitions(typeDefinition.getPropertyDefinitions());
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getId()
-   */
-  public String getId() {
-    return fId;
-  }
-
-  public void setId(String id) {
-    fId = id;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getLocalName()
-   */
-  public String getLocalName() {
-    return fLocalName;
-  }
-
-  public void setLocalName(String localName) {
-    fLocalName = localName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getLocalNamespace()
-   */
-  public String getLocalNamespace() {
-    return fLocalNamespace;
-  }
-
-  public void setLocalNamespace(String localNamespace) {
-    fLocalNamespace = localNamespace;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getQueryName()
-   */
-  public String getQueryName() {
-    return fQueryName;
-  }
-
-  public void setQueryName(String queryName) {
-    fQueryName = queryName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getDisplayName()
-   */
-  public String getDisplayName() {
-    return fDisplayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    fDisplayName = displayName;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getDescription()
-   */
-  public String getDescription() {
-    return fDescription;
-  }
-
-  public void setDescription(String description) {
-    fDescription = description;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getBaseId()
-   */
-  public BaseTypeId getBaseTypeId() {
-    return fBaseId;
-  }
-
-  public void setBaseTypeId(BaseTypeId baseId) {
-    fBaseId = baseId;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getParentId()
-   */
-  public String getParentTypeId() {
-    return fParentId;
-  }
-
-  public void setParentTypeId(String parentId) {
-    fParentId = parentId;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isCreatable()
-   */
-  public Boolean isCreatable() {
-    return fIsCreatable;
-  }
-
-  public void setIsCreatable(Boolean isCreatable) {
-    fIsCreatable = isCreatable;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isFileable()
-   */
-  public Boolean isFileable() {
-    return fIsFileable;
-  }
-
-  public void setIsFileable(Boolean isFileable) {
-    fIsFileable = isFileable;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isQueryable()
-   */
-  public Boolean isQueryable() {
-    return fIsQueryable;
-  }
-
-  public void setIsQueryable(Boolean isQueryable) {
-    fIsQueryable = isQueryable;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isIncludedInSupertypeQuery()
-   */
-  public Boolean isIncludedInSupertypeQuery() {
-    return fIsIncludedInSupertypeQuery;
-  }
-
-  public void setIsIncludedInSupertypeQuery(Boolean isIncludedInSupertypeQuery) {
-    fIsIncludedInSupertypeQuery = isIncludedInSupertypeQuery;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isFulltextIndexed()
-   */
-  public Boolean isFulltextIndexed() {
-    return fIsFulltextIndexed;
-  }
-
-  public void setIsFulltextIndexed(Boolean isFulltextIndexed) {
-    fIsFulltextIndexed = isFulltextIndexed;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isControllableACL()
-   */
-  public Boolean isControllableAcl() {
-    return fIsControllableACL;
-  }
-
-  public void setIsControllableAcl(Boolean isControllableACL) {
-    fIsControllableACL = isControllableACL;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#isControllablePolicy()
-   */
-  public Boolean isControllablePolicy() {
-    return fIsControllablePolicy;
-  }
-
-  public void setIsControllablePolicy(Boolean isControllablePolicy) {
-    fIsControllablePolicy = isControllablePolicy;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   *
-   * @see org.apache.opencmis.client.provider.TypeDefinitionData#getPropertyDefintions()
-   */
-  public Map<String, PropertyDefinition<?>> getPropertyDefinitions() {
-    return fPropertyDefinitions;
-  }
-
-  public void setPropertyDefinitions(Map<String, PropertyDefinition<?>> propertyDefinitions) {
-    fPropertyDefinitions = propertyDefinitions;
-  }
-
-  /**
-   * Adds a property definition.
-   *
-   * @param propertyDefinition
-   *          the property definition
-   */
-  public void addPropertyDefinition(PropertyDefinition<?> propertyDefinition) {
-    if (propertyDefinition == null) {
-      return;
-    }
-
-    if (fPropertyDefinitions == null) {
-      fPropertyDefinitions = new LinkedHashMap<String, PropertyDefinition<?>>();
-    }
-
-    fPropertyDefinitions.put(propertyDefinition.getId(), propertyDefinition);
-  }
-
-  public AbstractTypeDefinition clone() {
-    try {
-      return (AbstractTypeDefinition) super.clone();
-    }
-    catch (CloneNotSupportedException e) {
-      e.printStackTrace();
-      throw new RuntimeException("Clone not supported", e);
-    }
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Type Definition [base id=" + fBaseId + ", id=" + fId + ", display Name=" + fDisplayName
-        + ", description=" + fDescription + ", local name=" + fLocalName + ", local namespace="
-        + fLocalNamespace + ", query name=" + fQueryName + ", parent id=" + fParentId
-        + ", is controllable ACL=" + fIsControllableACL + ", is controllable policy="
-        + fIsControllablePolicy + ", is creatable=" + fIsCreatable + ", is fileable=" + fIsFileable
-        + ", is fulltext indexed=" + fIsFulltextIndexed + ", is included in supertype query="
-        + fIsIncludedInSupertypeQuery + ", is queryable=" + fIsQueryable
-        + ", property definitions=" + fPropertyDefinitions + "]" + super.toString();
-  }
+	private String fId;
+	private String fLocalName;
+	private String fLocalNamespace;
+	private String fQueryName;
+	private String fDisplayName;
+	private String fDescription;
+	private BaseTypeId fBaseId;
+	private String fParentId;
+	private Boolean fIsCreatable;
+	private Boolean fIsFileable;
+	private Boolean fIsQueryable;
+	private Boolean fIsIncludedInSupertypeQuery;
+	private Boolean fIsFulltextIndexed;
+	private Boolean fIsControllableACL;
+	private Boolean fIsControllablePolicy;
+	private Map<String, PropertyDefinition<?>> fPropertyDefinitions;
+
+	public void initialize(TypeDefinition typeDefinition) {
+		setId(typeDefinition.getId());
+		setLocalName(typeDefinition.getLocalName());
+		setLocalNamespace(typeDefinition.getLocalNamespace());
+		setQueryName(typeDefinition.getQueryName());
+		setDisplayName(typeDefinition.getDisplayName());
+		setDescription(typeDefinition.getDescription());
+		setBaseTypeId(typeDefinition.getBaseTypeId());
+		setParentTypeId(typeDefinition.getParentTypeId());
+		setIsCreatable(typeDefinition.isCreatable());
+		setIsFileable(typeDefinition.isFileable());
+		setIsQueryable(typeDefinition.isQueryable());
+		setIsIncludedInSupertypeQuery(typeDefinition.isIncludedInSupertypeQuery());
+		setIsFulltextIndexed(typeDefinition.isFulltextIndexed());
+		setIsControllableAcl(typeDefinition.isControllableAcl());
+		setIsControllablePolicy(typeDefinition.isControllablePolicy());
+		setPropertyDefinitions(typeDefinition.getPropertyDefinitions());
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#getId()
+	 */
+	public String getId() {
+		return fId;
+	}
+
+	public void setId(String id) {
+		fId = id;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getLocalName()
+	 */
+	public String getLocalName() {
+		return fLocalName;
+	}
+
+	public void setLocalName(String localName) {
+		fLocalName = localName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getLocalNamespace
+	 * ()
+	 */
+	public String getLocalNamespace() {
+		return fLocalNamespace;
+	}
+
+	public void setLocalNamespace(String localNamespace) {
+		fLocalNamespace = localNamespace;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getQueryName()
+	 */
+	public String getQueryName() {
+		return fQueryName;
+	}
+
+	public void setQueryName(String queryName) {
+		fQueryName = queryName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getDisplayName()
+	 */
+	public String getDisplayName() {
+		return fDisplayName;
+	}
+
+	public void setDisplayName(String displayName) {
+		fDisplayName = displayName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getDescription()
+	 */
+	public String getDescription() {
+		return fDescription;
+	}
+
+	public void setDescription(String description) {
+		fDescription = description;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#getBaseId()
+	 */
+	public BaseTypeId getBaseTypeId() {
+		return fBaseId;
+	}
+
+	public void setBaseTypeId(BaseTypeId baseId) {
+		fBaseId = baseId;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#getParentId()
+	 */
+	public String getParentTypeId() {
+		return fParentId;
+	}
+
+	public void setParentTypeId(String parentId) {
+		fParentId = parentId;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#isCreatable()
+	 */
+	public Boolean isCreatable() {
+		return fIsCreatable;
+	}
+
+	public void setIsCreatable(Boolean isCreatable) {
+		fIsCreatable = isCreatable;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#isFileable()
+	 */
+	public Boolean isFileable() {
+		return fIsFileable;
+	}
+
+	public void setIsFileable(Boolean isFileable) {
+		fIsFileable = isFileable;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.TypeDefinitionData#isQueryable()
+	 */
+	public Boolean isQueryable() {
+		return fIsQueryable;
+	}
+
+	public void setIsQueryable(Boolean isQueryable) {
+		fIsQueryable = isQueryable;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @seeorg.apache.opencmis.client.provider.TypeDefinitionData#
+	 * isIncludedInSupertypeQuery()
+	 */
+	public Boolean isIncludedInSupertypeQuery() {
+		return fIsIncludedInSupertypeQuery;
+	}
+
+	public void setIsIncludedInSupertypeQuery(Boolean isIncludedInSupertypeQuery) {
+		fIsIncludedInSupertypeQuery = isIncludedInSupertypeQuery;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#isFulltextIndexed
+	 * ()
+	 */
+	public Boolean isFulltextIndexed() {
+		return fIsFulltextIndexed;
+	}
+
+	public void setIsFulltextIndexed(Boolean isFulltextIndexed) {
+		fIsFulltextIndexed = isFulltextIndexed;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#isControllableACL
+	 * ()
+	 */
+	public Boolean isControllableAcl() {
+		return fIsControllableACL;
+	}
+
+	public void setIsControllableAcl(Boolean isControllableACL) {
+		fIsControllableACL = isControllableACL;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#isControllablePolicy
+	 * ()
+	 */
+	public Boolean isControllablePolicy() {
+		return fIsControllablePolicy;
+	}
+
+	public void setIsControllablePolicy(Boolean isControllablePolicy) {
+		fIsControllablePolicy = isControllablePolicy;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.TypeDefinitionData#getPropertyDefintions
+	 * ()
+	 */
+	public Map<String, PropertyDefinition<?>> getPropertyDefinitions() {
+		return fPropertyDefinitions;
+	}
+
+	public void setPropertyDefinitions(Map<String, PropertyDefinition<?>> propertyDefinitions) {
+		fPropertyDefinitions = propertyDefinitions;
+	}
+
+	/**
+	 * Adds a property definition.
+	 * 
+	 * @param propertyDefinition
+	 *            the property definition
+	 */
+	public void addPropertyDefinition(PropertyDefinition<?> propertyDefinition) {
+		if (propertyDefinition == null) {
+			return;
+		}
+
+		if (fPropertyDefinitions == null) {
+			fPropertyDefinitions = new LinkedHashMap<String, PropertyDefinition<?>>();
+		}
+
+		fPropertyDefinitions.put(propertyDefinition.getId(), propertyDefinition);
+	}
+
+	public AbstractTypeDefinition clone() {
+		try {
+			return (AbstractTypeDefinition) super.clone();
+		} catch (CloneNotSupportedException e) {
+			e.printStackTrace();
+			throw new RuntimeException("Clone not supported", e);
+		}
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Type Definition [base id=" + fBaseId + ", id=" + fId + ", display Name=" + fDisplayName
+				+ ", description=" + fDescription + ", local name=" + fLocalName + ", local namespace="
+				+ fLocalNamespace + ", query name=" + fQueryName + ", parent id=" + fParentId
+				+ ", is controllable ACL=" + fIsControllableACL + ", is controllable policy=" + fIsControllablePolicy
+				+ ", is creatable=" + fIsCreatable + ", is fileable=" + fIsFileable + ", is fulltext indexed="
+				+ fIsFulltextIndexed + ", is included in supertype query=" + fIsIncludedInSupertypeQuery
+				+ ", is queryable=" + fIsQueryable + ", property definitions=" + fPropertyDefinitions + "]"
+				+ super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlEntryImpl.java Fri Apr 16 14:14:09 2010
@@ -25,81 +25,83 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Access Control Entry data implementation.
- *
+ * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class AccessControlEntryImpl extends AbstractExtensionData implements Ace {
 
-  private List<String> fPermissions;
-  private Principal fPrincipal;
-  private boolean fIsDirect = true;
-
-  /**
-   * Constructor.
-   */
-  public AccessControlEntryImpl() {
-  }
-
-  /**
-   * Constructor.
-   */
-  public AccessControlEntryImpl(Principal principal, List<String> permissions) {
-    setPrincipal(principal);
-    setPermissions(permissions);
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.AccessControlEntry#getPrincipal()
-   */
-  public Principal getPrincipal() {
-    return fPrincipal;
-  }
-
-  public String getPrincipalId() {
-    return fPrincipal == null ? null : fPrincipal.getId();
-  }
-
-  public void setPrincipal(Principal principal) {
-    fPrincipal = principal;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.AccessControlEntry#getPermissions()
-   */
-  public List<String> getPermissions() {
-    return fPermissions;
-  }
-
-  public void setPermissions(List<String> permissions) {
-    fPermissions = permissions;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.AccessControlEntry#isDirect()
-   */
-  public boolean isDirect() {
-    return fIsDirect;
-  }
-
-  public void setDirect(boolean direct) {
-    fIsDirect = direct;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Access Control Entry [principal=" + fPrincipal + ", permissions=" + fPermissions
-        + ", is direct=" + fIsDirect + "]" + super.toString();
-  }
+	private List<String> fPermissions;
+	private Principal fPrincipal;
+	private boolean fIsDirect = true;
+
+	/**
+	 * Constructor.
+	 */
+	public AccessControlEntryImpl() {
+	}
+
+	/**
+	 * Constructor.
+	 */
+	public AccessControlEntryImpl(Principal principal, List<String> permissions) {
+		setPrincipal(principal);
+		setPermissions(permissions);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.AccessControlEntry#getPrincipal()
+	 */
+	public Principal getPrincipal() {
+		return fPrincipal;
+	}
+
+	public String getPrincipalId() {
+		return fPrincipal == null ? null : fPrincipal.getId();
+	}
+
+	public void setPrincipal(Principal principal) {
+		fPrincipal = principal;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.AccessControlEntry#getPermissions()
+	 */
+	public List<String> getPermissions() {
+		return fPermissions;
+	}
+
+	public void setPermissions(List<String> permissions) {
+		fPermissions = permissions;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.AccessControlEntry#isDirect()
+	 */
+	public boolean isDirect() {
+		return fIsDirect;
+	}
+
+	public void setDirect(boolean direct) {
+		fIsDirect = direct;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Access Control Entry [principal=" + fPrincipal + ", permissions=" + fPermissions + ", is direct="
+				+ fIsDirect + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlListImpl.java Fri Apr 16 14:14:09 2010
@@ -31,55 +31,55 @@ import org.apache.chemistry.opencmis.com
  */
 public class AccessControlListImpl extends AbstractExtensionData implements Acl {
 
-  private List<Ace> fAces;
-  private Boolean fIsExact;
+	private List<Ace> fAces;
+	private Boolean fIsExact;
 
-  /**
-   * Constructor.
-   */
-  public AccessControlListImpl() {
-  }
-
-  /**
-   * Constructor.
-   */
-  public AccessControlListImpl(List<Ace> aces) {
-    setAces(aces);
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.AccessControlList#getACEs()
-   */
-  public List<Ace> getAces() {
-    return fAces;
-  }
-
-  public void setAces(List<Ace> aces) {
-    fAces = aces;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.AccessControlList#isExact()
-   */
-  public Boolean isExact() {
-    return fIsExact;
-  }
-
-  public void setExact(Boolean isExact) {
-    fIsExact = isExact;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Access Control List [ACEs=" + fAces + ", is exact=" + fIsExact + "]" + super.toString();
-  }
+	/**
+	 * Constructor.
+	 */
+	public AccessControlListImpl() {
+	}
+
+	/**
+	 * Constructor.
+	 */
+	public AccessControlListImpl(List<Ace> aces) {
+		setAces(aces);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.AccessControlList#getACEs()
+	 */
+	public List<Ace> getAces() {
+		return fAces;
+	}
+
+	public void setAces(List<Ace> aces) {
+		fAces = aces;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.AccessControlList#isExact()
+	 */
+	public Boolean isExact() {
+		return fIsExact;
+	}
+
+	public void setExact(Boolean isExact) {
+		fIsExact = isExact;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Access Control List [ACEs=" + fAces + ", is exact=" + fIsExact + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlPrincipalDataImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlPrincipalDataImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlPrincipalDataImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AccessControlPrincipalDataImpl.java Fri Apr 16 14:14:09 2010
@@ -24,44 +24,45 @@ import org.apache.chemistry.opencmis.com
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  * 
  */
-public class AccessControlPrincipalDataImpl extends AbstractExtensionData implements
-    Principal {
+public class AccessControlPrincipalDataImpl extends AbstractExtensionData implements Principal {
 
-  private String fPrincipalId;
+	private String fPrincipalId;
 
-  /**
-   * Constructor.
-   */
-  public AccessControlPrincipalDataImpl() {
-  }
-
-  /**
-   * Constructor with principal id.
-   */
-  public AccessControlPrincipalDataImpl(String principalId) {
-    setPrincipalId(principalId);
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.AccessControlPrincipalData#getPrincipalId()
-   */
-  public String getId() {
-    return fPrincipalId;
-  }
-
-  public void setPrincipalId(String principalId) {
-    fPrincipalId = principalId;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Access Control Principal [principalId=" + fPrincipalId + "]" + super.toString();
-  }
+	/**
+	 * Constructor.
+	 */
+	public AccessControlPrincipalDataImpl() {
+	}
+
+	/**
+	 * Constructor with principal id.
+	 */
+	public AccessControlPrincipalDataImpl(String principalId) {
+		setPrincipalId(principalId);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.AccessControlPrincipalData#getPrincipalId
+	 * ()
+	 */
+	public String getId() {
+		return fPrincipalId;
+	}
+
+	public void setPrincipalId(String principalId) {
+		fPrincipalId = principalId;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Access Control Principal [principalId=" + fPrincipalId + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AclCapabilitiesDataImpl.java Fri Apr 16 14:14:09 2010
@@ -29,78 +29,83 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class AclCapabilitiesDataImpl extends AbstractExtensionData implements AclCapabilities {
 
-  private static final long serialVersionUID = 1L;
+	private static final long serialVersionUID = 1L;
 
-  private SupportedPermissions fSupportedPermissions;
-  private AclPropagation fACLPropagation;
-  private Map<String, PermissionMapping> permissionMapping;
-  private List<PermissionDefinition> fPermissionDefinitionList;
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ACLCapabilitiesData#getACLPropagation()
-   */
-  public SupportedPermissions getSupportedPermissions() {
-    return fSupportedPermissions;
-  }
-
-  public void setSupportedPermissions(SupportedPermissions supportedPermissions) {
-    fSupportedPermissions = supportedPermissions;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ACLCapabilitiesData#getACLPropagation()
-   */
-  public AclPropagation getAclPropagation() {
-    return fACLPropagation;
-  }
-
-  public void setAclPropagation(AclPropagation aclPropagation) {
-    fACLPropagation = aclPropagation;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ACLCapabilitiesData#getPermissionMappingData()
-   */
-  public Map<String, PermissionMapping> getPermissionMapping() {
-    return permissionMapping;
-  }
-
-  public void setPermissionMappingData(Map<String, PermissionMapping> permissionMapping) {
-    this.permissionMapping = permissionMapping;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ACLCapabilitiesData#getPermissionDefinitionData()
-   */
-  public List<PermissionDefinition> getPermissions() {
-    return fPermissionDefinitionList;
-  }
-
-  public void setPermissionDefinitionData(List<PermissionDefinition> permissionDefinitionList) {
-    fPermissionDefinitionList = permissionDefinitionList;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "ACL Capabilities [ACL propagation=" + fACLPropagation + ", permission definition list="
-        + fPermissionDefinitionList + ", permission mappings=" + permissionMapping + "]"
-        + super.toString();
-  }
+	private SupportedPermissions fSupportedPermissions;
+	private AclPropagation fACLPropagation;
+	private Map<String, PermissionMapping> permissionMapping;
+	private List<PermissionDefinition> fPermissionDefinitionList;
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.ACLCapabilitiesData#getACLPropagation
+	 * ()
+	 */
+	public SupportedPermissions getSupportedPermissions() {
+		return fSupportedPermissions;
+	}
+
+	public void setSupportedPermissions(SupportedPermissions supportedPermissions) {
+		fSupportedPermissions = supportedPermissions;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.ACLCapabilitiesData#getACLPropagation
+	 * ()
+	 */
+	public AclPropagation getAclPropagation() {
+		return fACLPropagation;
+	}
+
+	public void setAclPropagation(AclPropagation aclPropagation) {
+		fACLPropagation = aclPropagation;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @seeorg.apache.opencmis.client.provider.ACLCapabilitiesData#
+	 * getPermissionMappingData()
+	 */
+	public Map<String, PermissionMapping> getPermissionMapping() {
+		return permissionMapping;
+	}
+
+	public void setPermissionMappingData(Map<String, PermissionMapping> permissionMapping) {
+		this.permissionMapping = permissionMapping;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @seeorg.apache.opencmis.client.provider.ACLCapabilitiesData#
+	 * getPermissionDefinitionData()
+	 */
+	public List<PermissionDefinition> getPermissions() {
+		return fPermissionDefinitionList;
+	}
+
+	public void setPermissionDefinitionData(List<PermissionDefinition> permissionDefinitionList) {
+		fPermissionDefinitionList = permissionDefinitionList;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "ACL Capabilities [ACL propagation=" + fACLPropagation + ", permission definition list="
+				+ fPermissionDefinitionList + ", permission mappings=" + permissionMapping + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/AllowableActionsImpl.java Fri Apr 16 14:14:09 2010
@@ -26,32 +26,34 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class AllowableActionsImpl extends AbstractExtensionData implements AllowableActions {
 
-  private Set<Action> allowableActions = new HashSet<Action>();
+	private Set<Action> allowableActions = new HashSet<Action>();
 
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.AllowableActionsData#getAllowableActions()
-   */
-  public Set<Action> getAllowableActions() {
-    return allowableActions;
-  }
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.AllowableActionsData#getAllowableActions
+	 * ()
+	 */
+	public Set<Action> getAllowableActions() {
+		return allowableActions;
+	}
 
-  public void setAllowableActions(Set<Action> allowableActions) {
-    this.allowableActions = allowableActions;
-  }
+	public void setAllowableActions(Set<Action> allowableActions) {
+		this.allowableActions = allowableActions;
+	}
 
-  /*
-   * (non-Javadoc)
-   *
-   * @see java.lang.Object#toString()
-   */
-  @Override
-  public String toString() {
-    return "Allowable Actions [allowable actions=" + allowableActions + "]" + super.toString();
-  }
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	@Override
+	public String toString() {
+		return "Allowable Actions [allowable actions=" + allowableActions + "]" + super.toString();
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/BindingsObjectFactoryImpl.java Fri Apr 16 14:14:09 2010
@@ -42,95 +42,94 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * CMIS binding object factory implementation.
- *
+ * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class BindingsObjectFactoryImpl implements BindingsObjectFactory, Serializable {
 
-  private static final long serialVersionUID = 1L;
+	private static final long serialVersionUID = 1L;
 
-  public BindingsObjectFactoryImpl() {
-  }
+	public BindingsObjectFactoryImpl() {
+	}
 
-  public Ace createAccessControlEntry(String principal, List<String> permissions) {
-    return new AccessControlEntryImpl(new AccessControlPrincipalDataImpl(principal), permissions);
-  }
-
-  public Acl createAccessControlList(List<Ace> aces) {
-    return new AccessControlListImpl(aces);
-  }
-
-  public ContentStream createContentStream(String filename, BigInteger length, String mimetype,
-      InputStream stream) {
-    return new ContentStreamImpl(filename, length, mimetype, stream);
-  }
-
-  public Properties createPropertiesData(List<PropertyData<?>> properties) {
-    return new PropertiesImpl(properties);
-  }
-
-  public PropertyBoolean createPropertyBooleanData(String id, List<Boolean> values) {
-    return new PropertyBooleanImpl(id, values);
-  }
-
-  public PropertyBoolean createPropertyBooleanData(String id, Boolean value) {
-    return new PropertyBooleanImpl(id, value);
-  }
-
-  public PropertyDateTime createPropertyDateTimeData(String id, List<GregorianCalendar> values) {
-    return new PropertyDateTimeImpl(id, values);
-  }
-
-  public PropertyDateTime createPropertyDateTimeData(String id, GregorianCalendar value) {
-    return new PropertyDateTimeImpl(id, value);
-  }
-
-  public PropertyDecimal createPropertyDecimalData(String id, List<BigDecimal> values) {
-    return new PropertyDecimalImpl(id, values);
-  }
-
-  public PropertyDecimal createPropertyDecimalData(String id, BigDecimal value) {
-    return new PropertyDecimalImpl(id, value);
-  }
-
-  public PropertyHtml createPropertyHtmlData(String id, List<String> values) {
-    return new PropertyHtmlImpl(id, values);
-  }
-
-  public PropertyHtml createPropertyHtmlData(String id, String value) {
-    return new PropertyHtmlImpl(id, value);
-  }
-
-  public PropertyId createPropertyIdData(String id, List<String> values) {
-    return new PropertyIdImpl(id, values);
-  }
-
-  public PropertyId createPropertyIdData(String id, String value) {
-    return new PropertyIdImpl(id, value);
-  }
-
-  public PropertyInteger createPropertyIntegerData(String id, List<BigInteger> values) {
-    return new PropertyIntegerImpl(id, values);
-  }
-
-  public PropertyInteger createPropertyIntegerData(String id, BigInteger value) {
-    return new PropertyIntegerImpl(id, value);
-  }
-
-  public PropertyString createPropertyStringData(String id, List<String> values) {
-    return new PropertyStringImpl(id, values);
-  }
-
-  public PropertyString createPropertyStringData(String id, String value) {
-    return new PropertyStringImpl(id, value);
-  }
-
-  public PropertyUri createPropertyUriData(String id, List<String> values) {
-    return new PropertyUriImpl(id, values);
-  }
-
-  public PropertyUri createPropertyUriData(String id, String value) {
-    return new PropertyUriImpl(id, value);
-  }
+	public Ace createAccessControlEntry(String principal, List<String> permissions) {
+		return new AccessControlEntryImpl(new AccessControlPrincipalDataImpl(principal), permissions);
+	}
+
+	public Acl createAccessControlList(List<Ace> aces) {
+		return new AccessControlListImpl(aces);
+	}
+
+	public ContentStream createContentStream(String filename, BigInteger length, String mimetype, InputStream stream) {
+		return new ContentStreamImpl(filename, length, mimetype, stream);
+	}
+
+	public Properties createPropertiesData(List<PropertyData<?>> properties) {
+		return new PropertiesImpl(properties);
+	}
+
+	public PropertyBoolean createPropertyBooleanData(String id, List<Boolean> values) {
+		return new PropertyBooleanImpl(id, values);
+	}
+
+	public PropertyBoolean createPropertyBooleanData(String id, Boolean value) {
+		return new PropertyBooleanImpl(id, value);
+	}
+
+	public PropertyDateTime createPropertyDateTimeData(String id, List<GregorianCalendar> values) {
+		return new PropertyDateTimeImpl(id, values);
+	}
+
+	public PropertyDateTime createPropertyDateTimeData(String id, GregorianCalendar value) {
+		return new PropertyDateTimeImpl(id, value);
+	}
+
+	public PropertyDecimal createPropertyDecimalData(String id, List<BigDecimal> values) {
+		return new PropertyDecimalImpl(id, values);
+	}
+
+	public PropertyDecimal createPropertyDecimalData(String id, BigDecimal value) {
+		return new PropertyDecimalImpl(id, value);
+	}
+
+	public PropertyHtml createPropertyHtmlData(String id, List<String> values) {
+		return new PropertyHtmlImpl(id, values);
+	}
+
+	public PropertyHtml createPropertyHtmlData(String id, String value) {
+		return new PropertyHtmlImpl(id, value);
+	}
+
+	public PropertyId createPropertyIdData(String id, List<String> values) {
+		return new PropertyIdImpl(id, values);
+	}
+
+	public PropertyId createPropertyIdData(String id, String value) {
+		return new PropertyIdImpl(id, value);
+	}
+
+	public PropertyInteger createPropertyIntegerData(String id, List<BigInteger> values) {
+		return new PropertyIntegerImpl(id, values);
+	}
+
+	public PropertyInteger createPropertyIntegerData(String id, BigInteger value) {
+		return new PropertyIntegerImpl(id, value);
+	}
+
+	public PropertyString createPropertyStringData(String id, List<String> values) {
+		return new PropertyStringImpl(id, values);
+	}
+
+	public PropertyString createPropertyStringData(String id, String value) {
+		return new PropertyStringImpl(id, value);
+	}
+
+	public PropertyUri createPropertyUriData(String id, List<String> values) {
+		return new PropertyUriImpl(id, values);
+	}
+
+	public PropertyUri createPropertyUriData(String id, String value) {
+		return new PropertyUriImpl(id, value);
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChangeEventInfoDataImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChangeEventInfoDataImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChangeEventInfoDataImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChangeEventInfoDataImpl.java Fri Apr 16 14:14:09 2010
@@ -25,36 +25,38 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class ChangeEventInfoDataImpl extends AbstractExtensionData implements ChangeEventInfo {
 
-  private GregorianCalendar fChangeTime;
-  private ChangeType fTypeOfChanges;
+	private GregorianCalendar fChangeTime;
+	private ChangeType fTypeOfChanges;
 
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ChangeEventInfoData#getChangeTime()
-   */
-  public GregorianCalendar getChangeTime() {
-    return fChangeTime;
-  }
-
-  public void setChangeTime(GregorianCalendar changeTime) {
-    fChangeTime = changeTime;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ChangeEventInfoData#getChangeType()
-   */
-  public ChangeType getChangeType() {
-    return fTypeOfChanges;
-  }
-
-  public void setChangeType(ChangeType changeType) {
-    fTypeOfChanges = changeType;
-  }
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.ChangeEventInfoData#getChangeTime()
+	 */
+	public GregorianCalendar getChangeTime() {
+		return fChangeTime;
+	}
+
+	public void setChangeTime(GregorianCalendar changeTime) {
+		fChangeTime = changeTime;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.apache.opencmis.client.provider.ChangeEventInfoData#getChangeType()
+	 */
+	public ChangeType getChangeType() {
+		return fTypeOfChanges;
+	}
+
+	public void setChangeType(ChangeType changeType) {
+		fTypeOfChanges = changeType;
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ChoiceImpl.java Fri Apr 16 14:14:09 2010
@@ -28,46 +28,46 @@ import org.apache.chemistry.opencmis.com
  */
 public class ChoiceImpl<T> extends AbstractExtensionData implements Choice<T> {
 
-  private String fDisplayName;
-  private List<T> fValue;
-  private List<Choice<T>> fChoice;
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.Choice#getDisplayName()
-   */
-  public String getDisplayName() {
-    return fDisplayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    fDisplayName = displayName;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.Choice#getValue()
-   */
-  public List<T> getValue() {
-    return fValue;
-  }
-
-  public void setValue(List<T> value) {
-    fValue = value;
-  }
-
-  /*
-   * (non-Javadoc)
-   * 
-   * @see org.apache.opencmis.client.provider.Choice#getChoice()
-   */
-  public List<Choice<T>> getChoice() {
-    return fChoice;
-  }
-
-  public void setChoice(List<Choice<T>> choice) {
-    fChoice = choice;
-  }
+	private String fDisplayName;
+	private List<T> fValue;
+	private List<Choice<T>> fChoice;
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.Choice#getDisplayName()
+	 */
+	public String getDisplayName() {
+		return fDisplayName;
+	}
+
+	public void setDisplayName(String displayName) {
+		fDisplayName = displayName;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.Choice#getValue()
+	 */
+	public List<T> getValue() {
+		return fValue;
+	}
+
+	public void setValue(List<T> value) {
+		fValue = value;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.Choice#getChoice()
+	 */
+	public List<Choice<T>> getChoice() {
+		return fChoice;
+	}
+
+	public void setChoice(List<Choice<T>> choice) {
+		fChoice = choice;
+	}
 }

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java?rev=934897&r1=934896&r2=934897&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java (original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/dataobjects/ContentStreamImpl.java Fri Apr 16 14:14:09 2010
@@ -25,88 +25,87 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Content stream data implementation.
- *
+ * 
  * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
+ * 
  */
 public class ContentStreamImpl extends AbstractExtensionData implements ContentStream {
 
-  private String fFilename;
-  private BigInteger fLength;
-  private String fMimeType;
-  private InputStream fStream;
-
-  /**
-   * Constructor.
-   */
-  public ContentStreamImpl() {
-  }
-
-  /**
-   * Constructor.
-   */
-  public ContentStreamImpl(String filename, BigInteger length,
-          String mimetype, InputStream stream) {
-    setLength(length);
-    setMimeType(mimetype);
-    setFileName(filename);
-    setStream(stream);
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ContentStreamData#getFilename()
-   */
-  public String getFileName() {
-    return fFilename;
-  }
-
-  public void setFileName(String filename) {
-    fFilename = filename;
-  }
-
-  public long getLength() {
-    return fLength == null ? -1 : fLength.longValue();
-  }
-
-  public BigInteger getBigLength() {
-    return fLength;
-  }
-
-  public void setLength(BigInteger length) {
-    fLength = length;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ContentStreamData#getMimeType()
-   */
-  public String getMimeType() {
-    return fMimeType;
-  }
-
-  public void setMimeType(String mimetype) {
-    fMimeType = mimetype;
-  }
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.apache.opencmis.client.provider.ContentStreamData#getStream()
-   */
-  public InputStream getStream() {
-    return fStream;
-  }
-
-  public void setStream(InputStream stream) {
-    fStream = stream;
-  }
-
-  @Override
-  public String toString() {
-    return "ContentStream [filename=" + fFilename + ", length=" + fLength + ", MIME type="
-        + fMimeType + ", has stream=" + (fStream != null) + "]" + super.toString();
-  }
+	private String fFilename;
+	private BigInteger fLength;
+	private String fMimeType;
+	private InputStream fStream;
+
+	/**
+	 * Constructor.
+	 */
+	public ContentStreamImpl() {
+	}
+
+	/**
+	 * Constructor.
+	 */
+	public ContentStreamImpl(String filename, BigInteger length, String mimetype, InputStream stream) {
+		setLength(length);
+		setMimeType(mimetype);
+		setFileName(filename);
+		setStream(stream);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.ContentStreamData#getFilename()
+	 */
+	public String getFileName() {
+		return fFilename;
+	}
+
+	public void setFileName(String filename) {
+		fFilename = filename;
+	}
+
+	public long getLength() {
+		return fLength == null ? -1 : fLength.longValue();
+	}
+
+	public BigInteger getBigLength() {
+		return fLength;
+	}
+
+	public void setLength(BigInteger length) {
+		fLength = length;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.ContentStreamData#getMimeType()
+	 */
+	public String getMimeType() {
+		return fMimeType;
+	}
+
+	public void setMimeType(String mimetype) {
+		fMimeType = mimetype;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see org.apache.opencmis.client.provider.ContentStreamData#getStream()
+	 */
+	public InputStream getStream() {
+		return fStream;
+	}
+
+	public void setStream(InputStream stream) {
+		fStream = stream;
+	}
+
+	@Override
+	public String toString() {
+		return "ContentStream [filename=" + fFilename + ", length=" + fLength + ", MIME type=" + fMimeType
+				+ ", has stream=" + (fStream != null) + "]" + super.toString();
+	}
 }



Mime
View raw message