Examples/src/main/java/org/openestate/io/examples/TrovitWritingExample.java
protected static PictureType createPicture(int pos) {
        try {
            PictureType pic = FACTORY.createPictureType();
            pic.setPictureTitle("some descriptive title");
            pic.setPictureUrl(new URI("http://mywebsite.org/image" + pos + ".jpg"));
            pic.setFeatured(pos == 0);
            return pic;
        } catch (URISyntaxException ex) {
            return null;
        }
    }
protected static PictureType createPicture(int pos) {
        try {
            PictureType pic = FACTORY.createPictureType();
            pic.setPictureTitle("some descriptive title");
            pic.setPictureUrl(new URI("http://mywebsite.org/image" + pos + ".jpg"));
            pic.setFeatured(pos == 0);
            return pic;
        } catch (URISyntaxException ex) {
            return null;
        }
    }
protected static PictureType createPicture ( int pos ) { try { PictureType pic = FACTORY . createPictureType ( ) ; pic . setPictureTitle ( "some descriptive title" ) ; pic . setPictureUrl ( new URI ( "http://mywebsite.org/image" + pos + ".jpg" ) ) ; pic . setFeatured ( pos == 0 ) ; return pic ; } catch ( URISyntaxException ex ) { return null ; } }
Create a {@link PictureType} with some example data.

@param pos image position
@return created example object
Create a { @link PictureType } with some example data .