Class CMASpace


  • public class CMASpace
    extends CMAResource
    Represents a resource of type Space.
    • Constructor Detail

      • CMASpace

        public CMASpace()
        Create a space using the default types for the system property.
    • Method Detail

      • setSystem

        public CMASpace setSystem​(CMASystem system)
        Sets the system field.
        Overrides:
        setSystem in class CMAResource
        Parameters:
        system - sets the system property.
        Returns:
        this, as casted to a resource, for the ease of chaining.
      • getName

        public java.lang.String getName()
        Returns:
        the name of this Space.
      • setName

        public CMASpace setName​(java.lang.String name)
        Sets the name for this Space.
        Parameters:
        name - the name of the Space to be set
        Returns:
        this CMASpace instance.
      • setId

        public CMASpace setId​(java.lang.String id)
        Sets the id of this space.
        Overrides:
        setId in class CMAResource
        Parameters:
        id - to be set.
        Returns:
        this instance for chaining.
      • setVersion

        public CMASpace setVersion​(java.lang.Integer version)
        Set the version of this space.
        Overrides:
        setVersion in class CMAResource
        Parameters:
        version - the version to be set.
        Returns:
        this space instance for chaining.
      • getSpaceId

        public java.lang.String getSpaceId()
        This method returns the actual id of this space.
        Overrides:
        getSpaceId in class CMAResource
        Returns:
        the id of this space
        See Also:
        CMAResource.getId()
      • setSpaceId

        public CMASpace setSpaceId​(java.lang.String id)
        Sets the id of this space.
        Overrides:
        setSpaceId in class CMAResource
        Parameters:
        id - the id to be set.
        Returns:
        this space instance for chaining.
        See Also:
        setId(String)
      • getDefaultLocale

        public java.lang.String getDefaultLocale()
        Returns:
        the default locale of this space
      • setDefaultLocale

        public CMASpace setDefaultLocale​(java.lang.String defaultLocale)
        Set the default locale of this space.
        Parameters:
        defaultLocale - which locale should be default?
        Returns:
        this space for ease of chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class CMAResource
        Returns:
        a human readable string, representing the object.