at.knowcenter.wag.egov.egiz
Class PdfASID

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.PdfASID
All Implemented Interfaces:
Serializable

public class PdfASID
extends Object
implements Serializable

This class encapsulates the Pdf-AS ID ("Kennzeichnung") urn.

Author:
wprinz
See Also:
Serialized Form

Field Summary
protected static String NAMESPACE
          The namespace of the urn.
protected static String SPLIT_STRING
          The separator between urn blocks.
protected  String type
          The algorithm type.
protected static String URN
          The urn word that leads in the identifier.
protected  String vendor
          The vendor.
protected  String version
          The version of the algorithm.
 
Constructor Summary
PdfASID(PdfASID other)
          Copy Constructor.
PdfASID(String id)
          Parses the given id String and throws an Exception if it is not valid.
PdfASID(String vendor, String type, String version)
          Constructor that fills in the parameters directly.
 
Method Summary
 boolean equals(Object obj)
           
 String getType()
          Returns the type.
 String getVendor()
          Returns the vendor.
 String getVersion()
          Returns the version.
 int hashCode()
           
 boolean isOldCp1252Version()
          Returns if it is an old textual signature (pre 1.2.0) that used cp1252 encoding for text extraction (mostly)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

URN

protected static final String URN
The urn word that leads in the identifier.

See Also:
Constant Field Values

NAMESPACE

protected static final String NAMESPACE
The namespace of the urn.

See Also:
Constant Field Values

SPLIT_STRING

protected static final String SPLIT_STRING
The separator between urn blocks.

See Also:
Constant Field Values

vendor

protected String vendor
The vendor.


type

protected String type
The algorithm type.


version

protected String version
The version of the algorithm.

Constructor Detail

PdfASID

public PdfASID(String vendor,
               String type,
               String version)
Constructor that fills in the parameters directly.

Parameters:
vendor -
type -
version -

PdfASID

public PdfASID(String id)
        throws InvalidIDException
Parses the given id String and throws an Exception if it is not valid.

Parameters:
id - The id String to be parsed.

PdfASID

public PdfASID(PdfASID other)
Copy Constructor.

Parameters:
other - The other PdfASID to copy the data from.
Method Detail

getType

public String getType()
Returns the type.

Returns:
Returns the type.

getVendor

public String getVendor()
Returns the vendor.

Returns:
Returns the vendor.

getVersion

public String getVersion()
Returns the version.

Returns:
Returns the version.

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
See Also:
Object.toString()

isOldCp1252Version

public boolean isOldCp1252Version()
Returns if it is an old textual signature (pre 1.2.0) that used cp1252 encoding for text extraction (mostly)

Returns:


Copyright © 2006-2010. All Rights Reserved.