org.teldap.core.xmlvalidator.unionCatalog.rule
Class NoRepeatDigiID

java.lang.Object
  extended by org.teldap.core.xmlvalidator.unionCatalog.rule.NoRepeatDigiID

public class NoRepeatDigiID
extends java.lang.Object

Copyright 2009 數位典藏與數位學習國家型科技計畫(TELDAP) 數位核心平台計畫

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.

Title:檢查DigiArchiveID是否重複

Description:DACatalog XML實際上是藏品的Metadata,而DigiArchiveID就是藏品的識別碼/辨識碼,所以每項藏品的DigiArchiveID都必須是獨一無二的,不可與他項藏品共用。檢查的前提是該次檢查的全部XML須先通過前面一、二兩項的檢測(即編碼檢測和XML文件符合良好格式),並且全部XML的/DACatalog/AdminDesc/DigiArchiveID 皆存在並且非空值,才能檢測識別碼是否重覆

Version:
1.0
Author:
徐慈妍、洪崇熙、洪國翔

Constructor Summary
NoRepeatDigiID()
           
 
Method Summary
 void addRepeatDigiArchiveID(java.lang.String digiArchiveID)
          集合重複的digiArchiveID
 void checkRepeatDigiarchiveID(DACatalogXMLParser xmlParser)
          檢查是否有重複的DigiArchiveID
 void createFileReport(java.lang.String filepath, java.lang.String report)
          報告檔寫成檔案
 boolean hasRepeatDigiID()
           
 java.lang.String repeatdigiIDReport()
          重複DigiArchiveID report
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoRepeatDigiID

public NoRepeatDigiID()
Method Detail

addRepeatDigiArchiveID

public void addRepeatDigiArchiveID(java.lang.String digiArchiveID)
集合重複的digiArchiveID


checkRepeatDigiarchiveID

public void checkRepeatDigiarchiveID(DACatalogXMLParser xmlParser)
檢查是否有重複的DigiArchiveID


hasRepeatDigiID

public boolean hasRepeatDigiID()

repeatdigiIDReport

public java.lang.String repeatdigiIDReport()
重複DigiArchiveID report


createFileReport

public void createFileReport(java.lang.String filepath,
                             java.lang.String report)
報告檔寫成檔案

Parameters:
filepath - String 輸出的檔案路徑
report - String 輸出的內容