Java 8 XmlNsForm - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 XmlNsForm class.

This code example shows how to use the following methods:equals
	void checkElementFormDefault(Object annoFromDefault) {  
		XmlNsForm efd = m_xmlSchemaAnnoBuilder.getElementFormDefault();
		if (annoFromDefault instanceof XmlSchema) { 
			XmlNsForm nsForm = ((XmlSchema)annoFromDefault).elementFormDefault();
			  
			if (!nsForm.equals(XmlNsForm.UNSET) && !efd.equals(nsForm)) {
				throw new ElementFormMismatchException(); 
			} 
		} 
	} 
	 
	public boolean hasClassAnnotation(Class clazz, Class<? extends Annotation> annotationType) {
		return DEFAULT_READER.hasClassAnnotation(clazz, annotationType);
	} 
 
	public boolean hasFieldAnnotation(Class<? extends Annotation> annotationType, Field field) {
		return DEFAULT_READER.hasFieldAnnotation(annotationType, field);
	} 
 
	@Override 
4
CodeRank
This code example shows how to use the following methods:equals
		if (!elementFormDefault
				.equals(((XmlSchemaBean) that).elementFormDefault)) {
			return false; 
		} 
		if (!attributeFormDefault
				.equals(((XmlSchemaBean) that).attributeFormDefault)) {
			return false; 
		} 
		return true; 
	} 
 
	@Override 
	public int hashCode() { 
		int r = 0;
		r = (r ^ location.hashCode());
		r = (r ^ namespace.hashCode());
		return r;
	} 
} 
4
CodeRank
This code example shows how to use the following methods:name
	private static Map<String, String> DEFAULT_OPTIONS;
	private static Class<?>[] DEFAULT_ROOT_CLASSES_FOR_TEST = new Class[] {MyMessage.class, ErrorMessage.class};
 
	static { 
		DEFAULT_OPTIONS = new HashMap<String, String>();
		DEFAULT_OPTIONS.put("elementFormDefault", XmlNsForm.UNQUALIFIED.name());
	} 
 
	protected SerializerFactory m_serFactory;
	protected DeserializerFactory m_deserFactory;
	protected Class<?>[] m_rootClasses;
 
	public BaseSerDeserTest() { 
		m_rootClasses = DEFAULT_ROOT_CLASSES_FOR_TEST;
		UKernelLoggingUtils.initTesting(); 
	} 
	 
	protected BaseSerDeserTest(Class<?>[] rootClasses) {
		m_rootClasses = rootClasses;
		UKernelLoggingUtils.initTesting(); 
4
CodeRank
See Code Examples for Java 8 XmlNsForm Methods: