001 /*
002 * JBoss, Home of Professional Open Source.
003 * Copyright 2008, Red Hat Middleware LLC, and individual contributors
004 * as indicated by the @author tags. See the copyright.txt file in the
005 * distribution for a full listing of individual contributors.
006 *
007 * This is free software; you can redistribute it and/or modify it
008 * under the terms of the GNU Lesser General Public License as
009 * published by the Free Software Foundation; either version 2.1 of
010 * the License, or (at your option) any later version.
011 *
012 * This software is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * You should have received a copy of the GNU Lesser General Public
018 * License along with this software; if not, write to the Free
019 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021 */
022 package org.jboss.dna.graph.properties.basic;
023
024 import java.math.BigDecimal;
025 import java.net.URI;
026 import org.jboss.dna.graph.properties.Binary;
027 import org.jboss.dna.graph.properties.DateTimeFactory;
028 import org.jboss.dna.graph.properties.NameFactory;
029 import org.jboss.dna.graph.properties.PathFactory;
030 import org.jboss.dna.graph.properties.Reference;
031 import org.jboss.dna.graph.properties.UuidFactory;
032 import org.jboss.dna.graph.properties.ValueFactories;
033 import org.jboss.dna.graph.properties.ValueFactory;
034
035 /**
036 * @author Randall Hauch
037 */
038 public class DelegatingValueFactories extends AbstractValueFactories {
039
040 private final ValueFactories delegate;
041
042 protected DelegatingValueFactories( ValueFactories delegate ) {
043 assert delegate != null;
044 this.delegate = delegate;
045 }
046
047 public ValueFactory<Binary> getBinaryFactory() {
048 return delegate.getBinaryFactory();
049 }
050
051 public ValueFactory<Boolean> getBooleanFactory() {
052 return delegate.getBooleanFactory();
053 }
054
055 public DateTimeFactory getDateFactory() {
056 return delegate.getDateFactory();
057 }
058
059 public ValueFactory<BigDecimal> getDecimalFactory() {
060 return delegate.getDecimalFactory();
061 }
062
063 public ValueFactory<Double> getDoubleFactory() {
064 return delegate.getDoubleFactory();
065 }
066
067 public ValueFactory<Long> getLongFactory() {
068 return delegate.getLongFactory();
069 }
070
071 public NameFactory getNameFactory() {
072 return delegate.getNameFactory();
073 }
074
075 public ValueFactory<Object> getObjectFactory() {
076 return delegate.getObjectFactory();
077 }
078
079 public PathFactory getPathFactory() {
080 return delegate.getPathFactory();
081 }
082
083 public ValueFactory<Reference> getReferenceFactory() {
084 return delegate.getReferenceFactory();
085 }
086
087 public ValueFactory<String> getStringFactory() {
088 return delegate.getStringFactory();
089 }
090
091 public ValueFactory<URI> getUriFactory() {
092 return delegate.getUriFactory();
093 }
094
095 public UuidFactory getUuidFactory() {
096 return delegate.getUuidFactory();
097 }
098
099 }