Code example for AnnotatedElement

Methods: getAnnotation

0
		private String type;
 
		public ContentMimeTypeVndInfo(AnnotatedElement element)
		{ 
			super(); 
			DefaultContentMimeTypeVnd contentMimeTypeVnd = element.getAnnotation(DefaultContentMimeTypeVnd.class);
			if(contentMimeTypeVnd != null)
			{ 
				this.name = contentMimeTypeVnd.name();
				this.type = contentMimeTypeVnd.type();
				validFlagOn(); 
			} 
		} 
 
		public ContentMimeTypeVndInfo(String name, String type)
		{ 
			super(); 
			this.name = name;
			this.type = type;
			validFlagOn(); 
		}