1 7 package org.jboss.xml.binding; 8 9 15 public class DelegatingObjectModelProvider 16 implements GenericObjectModelProvider 17 { 18 private final ObjectModelProvider provider; 19 20 public DelegatingObjectModelProvider(ObjectModelProvider provider) 21 { 22 this.provider = provider; 23 } 24 25 public Object getChildren(Object o, String namespaceURI, String localName) 26 { 27 return AbstractMarshaller.provideChildren(provider, o, namespaceURI, localName); 28 } 29 30 public Object getElementValue(Object o, String namespaceURI, String localName) 31 { 32 return AbstractMarshaller.provideValue(provider, o, namespaceURI, localName); 33 } 34 35 public Object getAttributeValue(Object o, String namespaceURI, String localName) 36 { 37 return AbstractMarshaller.provideAttributeValue(provider, o, namespaceURI, localName); 38 } 39 40 public Object getRoot(Object o, String namespaceURI, String localName) 41 { 42 return provider.getRoot(o, namespaceURI, localName); 43 } 44 } 45 | Popular Tags |