1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 package org.apache.fontbox.afm; 18 19 import java.util.ArrayList; 20 import java.util.List; 21 22 /** 23 * This class represents composite character data. 24 * 25 * @author Ben Litchfield (ben@benlitchfield.com) 26 * @version $Revision: 1.1 $ 27 */ 28 public class Composite 29 { 30 private String name; 31 private List<CompositePart> parts = new ArrayList<CompositePart>(); 32 33 /** Getter for property name. 34 * @return Value of property name. 35 */ 36 public String getName() 37 { 38 return name; 39 } 40 41 /** Setter for property name. 42 * @param nameValue New value of property name. 43 */ 44 public void setName(String nameValue) 45 { 46 this.name = nameValue; 47 } 48 49 /** 50 * This will add a composite part. 51 * 52 * @param part The composite part to add. 53 */ 54 public void addPart( CompositePart part ) 55 { 56 parts.add( part ); 57 } 58 59 /** Getter for property parts. 60 * @return Value of property parts. 61 */ 62 public List<CompositePart> getParts() 63 { 64 return parts; 65 } 66 67 /** Setter for property parts. 68 * @param partsList New value of property parts. 69 */ 70 public void setParts(List<CompositePart> partsList) 71 { 72 this.parts = partsList; 73 } 74 75 }