﻿var wcmDocument = Class.create({
		
	initialize: function(json) {
		this._json = json;
	}, 	
	getTitle:function(subLength){
		if(subLength==null)
			return this._json.title;
		else
			return this._json.title.substring(0,subLength);
	},
	getDocpeople:function(subLength){
		if(subLength==null)
			return this._json.docpeople;
		else
			return this._json.docpeople.substring(0,subLength);
	},
	getSummary:function(subLength){
		if(subLength==null)
			return this._json.summary;
		else
			return this._json.summary.substring(0,subLength);
		
	},
	getUrl:function(){
		return this._json.url;
	},	
	getPicUrl:function(){
		return this._json.picUrl;
	},
	getAddDate:function(){
		return this._json.addDate;
	},
	getAuthor:function(){
		return this._json.author;
	},
	getEditer:function(){
		return this._json.editer;
	},
	getInfoFrom:function(){
		return this._json.infoFrom;
	},
	getPicHeight:function(){
		return this._json.picHeight;
	},
	getPicWidth:function(){
		return this._json.picWidth;
	}
	
}); 