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.sequencer.java.metadata;
023
024
025 /**
026 * ArrayTypeFieldMetadata represents the meta data for an array type.
027 *
028 * @author Serge Pagop
029 */
030 public class ArrayTypeFieldMetadata extends FieldMetadata {
031
032 /**
033 * {@inheritDoc}
034 *
035 * @see org.jboss.dna.sequencer.java.metadata.FieldMetadata#isArrayType()
036 */
037 @Override
038 public boolean isArrayType() {
039 return true;
040 }
041
042 // Element type
043 private FieldMetadata elementType;
044
045 // Component type
046 private FieldMetadata componentType;
047
048 public ArrayTypeFieldMetadata() {
049
050 }
051
052 /**
053 * @return elementType
054 */
055 public FieldMetadata getElementType() {
056 return elementType;
057 }
058
059 /**
060 * @param elementType Sets elementType to the specified value.
061 */
062 public void setElementType( FieldMetadata elementType ) {
063 this.elementType = elementType;
064 }
065
066 /**
067 * @return componentType
068 */
069 public FieldMetadata getComponentType() {
070 return componentType;
071 }
072
073 /**
074 * @param componentType Sets componentType to the specified value.
075 */
076 public void setComponentType( FieldMetadata componentType ) {
077 this.componentType = componentType;
078 }
079
080 /**
081 * {@inheritDoc}
082 *
083 * @see java.lang.Object#toString()
084 */
085 @Override
086 public String toString() {
087 return "ArrayTypeFieldMetadata [ " + getType() + " ]";
088 }
089 }