Code example for Element

Methods: getOwnerDocument

0
	 */ 
	public static CMElementDeclaration getElementDeclaration(Element element) {
		if (element == null) {
			return null; 
		} 
		INodeNotifier notifier = (INodeNotifier) element.getOwnerDocument();
		if (notifier == null) {
			return null; 
		} 
		ModelQueryAdapter mqa = (ModelQueryAdapter) notifier
				.getAdapterFor(ModelQueryAdapter.class); 
		if (mqa == null) {
			return null; 
		} 
		return mqa.getModelQuery().getCMElementDeclaration(element);
	} 
 
}