org.eclipse.lyo.oslc4j.core.model

## Class Preview

- java.lang.Object
- - org.eclipse.lyo.oslc4j.core.model.AbstractResource
  - - org.eclipse.lyo.oslc4j.core.model.Preview

- All Implemented Interfaces:
    IExtendedResource, IResource

      @OslcNamespace(value="http://open-services.net/ns/core#")
      @OslcResourceShape(title="OSLC Preview Resource Shape",
                         describes="http://open-services.net/ns/core#Preview")
      public class Preview
      extends AbstractResource

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Preview()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `URI` | `getDocument()`
    `String` | `getHintHeight()`
    `String` | `getHintWidth()`
    `String` | `getInitialHeight()`
    `void` | `setDocument(URI document)`
    `void` | `setHintHeight(String hintHeight)`
    `void` | `setHintWidth(String hintWidth)`
    `void` | `setInitialHeight(String initialHeight)`

    - ### Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource

      `addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Preview

          public Preview()

  - ### Method Detail

    - #### getDocument

          @OslcDescription(value="The URI of an HTML document to be used for the preview")
          @OslcPropertyDefinition(value="http://open-services.net/ns/core#document")
          @OslcReadOnly
          @OslcTitle(value="Document")
          public URI getDocument()

    - #### getHintHeight

          @OslcDescription(value="Recommended height of the preview. Values MUST be expressed in relative length units as defined in the W3C Cascading Style Sheets Specification (CSS 2.1). Em and ex units are interpreted relative to the default system font (at 100% size).")
          @OslcPropertyDefinition(value="http://open-services.net/ns/core#hintHeight")
          @OslcReadOnly
          @OslcTitle(value="Hint Height")
          public String getHintHeight()

    - #### getHintWidth

          @OslcDescription(value="Recommended width of the preview. Values MUST be expressed in relative length units as defined in the W3C Cascading Style Sheets Specification (CSS 2.1). Em and ex units are interpreted relative to the default system font (at 100% size).")
          @OslcPropertyDefinition(value="http://open-services.net/ns/core#hintWidth")
          @OslcReadOnly
          @OslcTitle(value="Hint Width")
          public String getHintWidth()

    - #### getInitialHeight

          @OslcDescription(value="Recommended initial height of the preview. The presence of this property indicates that the preview supports dynamically computing its size. Values MUST be expressed in relative length units as defined in the W3C Cascading Style Sheets Specification (CSS 2.1). Em and ex units are interpreted relative to the default system font (at 100% size).")
          @OslcPropertyDefinition(value="http://open-services.net/ns/core#initialHeight")
          @OslcReadOnly
          @OslcTitle(value="Initial Height")
          public String getInitialHeight()

    - #### setDocument

          public void setDocument(URI document)

    - #### setHintHeight

          public void setHintHeight(String hintHeight)

    - #### setHintWidth

          public void setHintWidth(String hintWidth)

    - #### setInitialHeight

          public void setInitialHeight(String initialHeight)

Copyright © 2016. All rights reserved.