public void setValue(MessageDestination destination, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("message-destination-name")) { destination.setMessageDestinationName(getValue(localName, value)); } } }
public static ApplicationClientDD parse(URL ddResource) throws JBossXBException, IOException { if (ddResource == null) return null; log.debug("found application-client.xml " + ddResource); ApplicationClientDDObjectFactory factory = new ApplicationClientDDObjectFactory(); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); ApplicationClientDD dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); return dd; }
public static ApplicationClientDD parse(URL ddResource) throws JBossXBException, IOException { if (ddResource == null) return null; log.debug("found application-client.xml " + ddResource); ApplicationClientDDObjectFactory factory = new ApplicationClientDDObjectFactory(); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); ApplicationClientDD dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); return dd; }
public void setValue(MessageDestination destination, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("message-destination-name")) { destination.setMessageDestinationName(getValue(localName, value)); } } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(ApplicationClientDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("display-name")) { dd.setDisplayName(getValue(localName, value)); } // else if(localName.equals("description")) // { // // ignore // } // else // throw new IllegalArgumentException(localName); }
/** * Called when a child element with simple content is read for DD. */ public void setValue(ApplicationClientDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("display-name")) { dd.setDisplayName(getValue(localName, value)); } // else if(localName.equals("description")) // { // // ignore // } // else // throw new IllegalArgumentException(localName); }