Code example for AnnotatedElement

Methods: getAnnotation

0
		private String path;
 
		public ContentUriInfo(AnnotatedElement element)
		{ 
			super(); 
			DefaultContentUri contentUri = element.getAnnotation(DefaultContentUri.class);
			if(contentUri != null)
			{ 
				this.authority = contentUri.authority();
				this.path = contentUri.path();
				validFlagOn(); 
			} 
		} 
		 
		public ContentUriInfo(String authority, String path)
		{ 
			super(); 
			this.authority = authority;
			this.path = path;
			validFlagOn(); 
		}