Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2013, Plutext Pty Ltd.
   *   
   *  This file is part of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 
 
 package org.docx4j.wml; 
 
 
 import java.util.List;

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="font" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="altName" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="panose1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Panose" minOccurs="0"/>
                   <element name="charset" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_UcharHexNumber" minOccurs="0"/>
                   <element name="family" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontFamily" minOccurs="0"/>
                   <element name="notTrueType" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
                   <element name="pitch" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Pitch" minOccurs="0"/>
                   <element name="sig" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontSig" minOccurs="0"/>
                   <element name="embedRegular" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
                   <element name="embedBold" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
                   <element name="embedItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
                   <element name="embedBoldItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
                 </sequence>
                 <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "font"
 })
 @XmlRootElement(name = "fonts")
 public class Fonts implements Child
 {
 
     protected List<Fonts.Fontfont;
     @XmlTransient
     private Object parent;

    
Gets the value of the font property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the font property.

For example, to add a new item, do as follows:

    getFont().add(newItem);
 

Objects of the following type(s) are allowed in the list

    public List<Fonts.FontgetFont() {
        if ( == null) {
             = new ArrayList<Fonts.Font>();
        }
        return this.;
    }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = parent;
    }

    
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="altName" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="panose1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Panose" minOccurs="0"/>
         <element name="charset" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_UcharHexNumber" minOccurs="0"/>
         <element name="family" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontFamily" minOccurs="0"/>
         <element name="notTrueType" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="pitch" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Pitch" minOccurs="0"/>
         <element name="sig" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontSig" minOccurs="0"/>
         <element name="embedRegular" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
         <element name="embedBold" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
         <element name="embedItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
         <element name="embedBoldItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "altName",
        "panose1",
        "charset",
        "family",
        "notTrueType",
        "pitch",
        "sig",
        "embedRegular",
        "embedBold",
        "embedItalic",
        "embedBoldItalic"
    })
    public static class Font implements Child
    {
        protected Fonts.Font.AltName altName;
        protected FontPanose panose1;
        protected CTUcharHexNumber charset;
        protected FontFamily family;
        protected BooleanDefaultTrue notTrueType;
        protected FontPitch pitch;
        protected FontSig sig;
        protected FontRel embedRegular;
        protected FontRel embedBold;
        protected FontRel embedItalic;
        protected FontRel embedBoldItalic;
        @XmlAttribute(name = "name", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
        protected String name;
        @XmlTransient
        private Object parent;

        
Gets the value of the altName property.

Returns:
possible object is
        public Fonts.Font.AltName getAltName() {
            return ;
        }

        
Sets the value of the altName property.

Parameters:
value allowed object is
        public void setAltName(Fonts.Font.AltName value) {
            this. = value;
        }

        
Gets the value of the panose1 property.

Returns:
possible object is
        public FontPanose getPanose1() {
            return ;
        }

        
Sets the value of the panose1 property.

Parameters:
value allowed object is
        public void setPanose1(FontPanose value) {
            this. = value;
        }

        
Gets the value of the charset property.

Returns:
possible object is
        public CTUcharHexNumber getCharset() {
            return ;
        }

        
Sets the value of the charset property.

Parameters:
value allowed object is
        public void setCharset(CTUcharHexNumber value) {
            this. = value;
        }

        
Gets the value of the family property.

Returns:
possible object is
        public FontFamily getFamily() {
            return ;
        }

        
Sets the value of the family property.

Parameters:
value allowed object is
        public void setFamily(FontFamily value) {
            this. = value;
        }

        
Gets the value of the notTrueType property.

Returns:
possible object is
        public BooleanDefaultTrue getNotTrueType() {
            return ;
        }

        
Sets the value of the notTrueType property.

Parameters:
value allowed object is
        public void setNotTrueType(BooleanDefaultTrue value) {
            this. = value;
        }

        
Gets the value of the pitch property.

Returns:
possible object is
        public FontPitch getPitch() {
            return ;
        }

        
Sets the value of the pitch property.

Parameters:
value allowed object is
        public void setPitch(FontPitch value) {
            this. = value;
        }

        
Gets the value of the sig property.

Returns:
possible object is
        public FontSig getSig() {
            return ;
        }

        
Sets the value of the sig property.

Parameters:
value allowed object is
        public void setSig(FontSig value) {
            this. = value;
        }

        
Gets the value of the embedRegular property.

Returns:
possible object is
        public FontRel getEmbedRegular() {
            return ;
        }

        
Sets the value of the embedRegular property.

Parameters:
value allowed object is
        public void setEmbedRegular(FontRel value) {
            this. = value;
        }

        
Gets the value of the embedBold property.

Returns:
possible object is
        public FontRel getEmbedBold() {
            return ;
        }

        
Sets the value of the embedBold property.

Parameters:
value allowed object is
        public void setEmbedBold(FontRel value) {
            this. = value;
        }

        
Gets the value of the embedItalic property.

Returns:
possible object is
        public FontRel getEmbedItalic() {
            return ;
        }

        
Sets the value of the embedItalic property.

Parameters:
value allowed object is
        public void setEmbedItalic(FontRel value) {
            this. = value;
        }

        
Gets the value of the embedBoldItalic property.

Returns:
possible object is
        public FontRel getEmbedBoldItalic() {
            return ;
        }

        
Sets the value of the embedBoldItalic property.

Parameters:
value allowed object is
        public void setEmbedBoldItalic(FontRel value) {
            this. = value;
        }

        
Gets the value of the name property.

Returns:
possible object is
        public String getName() {
            return ;
        }

        
Sets the value of the name property.

Parameters:
value allowed object is
        public void setName(String value) {
            this. = value;
        }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
        public Object getParent() {
            return this.;
        }
        public void setParent(Object parent) {
            this. = parent;
        }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
        public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
            setParent(parent);
        }


        

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
        @XmlType(name = "")
        public static class AltName implements Child
        {
            @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
            protected String val;
            @XmlTransient
            private Object parent;

            
Gets the value of the val property.

Returns:
possible object is
            public String getVal() {
                return ;
            }

            
Sets the value of the val property.

Parameters:
value allowed object is
            public void setVal(String value) {
                this. = value;
            }

            
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
            public Object getParent() {
                return this.;
            }
            public void setParent(Object parent) {
                this. = parent;
            }

            
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
            public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
                setParent(parent);
            }
        }
    }
New to GrepCode? Check out our FAQ X