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; 
 
 

Java class for CT_WriteProtection complex type.

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

 <complexType name="CT_WriteProtection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attGroup ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}AG_Password"/>
       <attribute name="recommended" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_WriteProtection")
 public class CTWriteProtection implements Child
 {
 
     @XmlAttribute(name = "recommended", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected Boolean recommended;
     @XmlAttribute(name = "cryptProviderType", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STCryptProv cryptProviderType;
     @XmlAttribute(name = "cryptAlgorithmClass", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STAlgClass cryptAlgorithmClass;
     @XmlAttribute(name = "cryptAlgorithmType", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STAlgType cryptAlgorithmType;
     @XmlAttribute(name = "cryptAlgorithmSid", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger cryptAlgorithmSid;
     @XmlAttribute(name = "cryptSpinCount", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger cryptSpinCount;
     @XmlAttribute(name = "cryptProvider", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected String cryptProvider;
     @XmlAttribute(name = "algIdExt", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected String algIdExt;
     @XmlAttribute(name = "algIdExtSource", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected String algIdExtSource;
     @XmlAttribute(name = "cryptProviderTypeExt", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected String cryptProviderTypeExt;
     @XmlAttribute(name = "cryptProviderTypeExtSource", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected String cryptProviderTypeExtSource;
     @XmlAttribute(name = "hash", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected byte[] hash;
     @XmlAttribute(name = "salt", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected byte[] salt;
     @XmlTransient
     private Object parent;

    
Gets the value of the recommended property.

Returns:
possible object is
 
     public boolean isRecommended() {
         if ( == null) {
             return true;
         } else {
             return ;
        }
    }

    
Sets the value of the recommended property.

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

    
Gets the value of the cryptProviderType property.

Returns:
possible object is
    public STCryptProv getCryptProviderType() {
        return ;
    }

    
Sets the value of the cryptProviderType property.

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

    
Gets the value of the cryptAlgorithmClass property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the cryptAlgorithmClass property.

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

    
Gets the value of the cryptAlgorithmType property.

Returns:
possible object is
    public STAlgType getCryptAlgorithmType() {
        return ;
    }

    
Sets the value of the cryptAlgorithmType property.

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

    
Gets the value of the cryptAlgorithmSid property.

Returns:
possible object is
    public BigInteger getCryptAlgorithmSid() {
        return ;
    }

    
Sets the value of the cryptAlgorithmSid property.

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

    
Gets the value of the cryptSpinCount property.

Returns:
possible object is
    public BigInteger getCryptSpinCount() {
        return ;
    }

    
Sets the value of the cryptSpinCount property.

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

    
Gets the value of the cryptProvider property.

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

    
Sets the value of the cryptProvider property.

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

    
Gets the value of the algIdExt property.

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

    
Sets the value of the algIdExt property.

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

    
Gets the value of the algIdExtSource property.

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

    
Sets the value of the algIdExtSource property.

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

    
Gets the value of the cryptProviderTypeExt property.

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

    
Sets the value of the cryptProviderTypeExt property.

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

    
Gets the value of the cryptProviderTypeExtSource property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the cryptProviderTypeExtSource property.

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

    
Gets the value of the hash property.

Returns:
possible object is byte[]
    public byte[] getHash() {
        return ;
    }

    
Sets the value of the hash property.

Parameters:
value allowed object is byte[]
    public void setHash(byte[] value) {
        this. = value;
    }

    
Gets the value of the salt property.

Returns:
possible object is byte[]
    public byte[] getSalt() {
        return ;
    }

    
Sets the value of the salt property.

Parameters:
value allowed object is byte[]
    public void setSalt(byte[] 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