Saturday, September 28, 2013

Modelo Simples - Swift Movement Is Seen on Syria After U.N. Action Q

Que se explica pela "aplicabilidade" na pratica, ou seja, nome, atributo e o que faz? Pega o que tem na mao e enfia no cu. Aqqyu vem da escricao do cara, em palavras suscintas, e voce tem outro modelo de programação, cada um por si e Deus por nois.
Que Coincidencia nao....!

Nao comi... 









package org.nanotek.cms.domain.document;

import java.util.List;



import org.nanotek.util.Base;
import com.sun.syndication.feed.atom.Link;
/**
 *
 * @author JoseCanovaMauger
 *
 * A Class that represents an instance of a document, processed by Tika and Indexed by Lucene.
 * It's intended to be used on the persistent storage of the metadata, indexing extraction, providing
 * a base pointer to a set of URI's to locate the document.
 * The mime-type is optional and used just for "report purposes".
 *
 *
 */


@SuppressWarnings("serial")
public class MediaReference implements Base<String> {

private String id;
private Long size;
private String mimeType;
private List<Label> labels;
private List<Link> locations;
private DocumentRelation documentRelation;

public MediaReference() {
postConstruct();
}

private void postConstruct() {
documentRelation = new DocumentRelation(this);
}

@Override
public String getId() {
return id;
}

public String getMimeType() {
return mimeType;
}

public void setMimeType(String mimeType) {
this.mimeType = mimeType;
}

public void setId(String id) {
this.id = id;
}

public List<Label> getLabels() {
return labels;
}

public void setLabels(List<Label> labels) {
this.labels = labels;
}

public Long getSize() {
return size;
}

public void setSize(Long size) {
this.size = size;
}

public DocumentRelation getDocumentRelation() {
return documentRelation;
}

public void setDocumentRelation(DocumentRelation documentRelation) {
this.documentRelation = documentRelation;
}

public List<Link> getLocations() {
return locations;
}

public void setLocations(List<Link> locations) {
this.locations = locations;
}


}