|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.teldap.core.xmlvalidator.unionCatalog.rule.Catalog
public class Catalog
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: 檢查/DACatalog/AdminDesc/Catalog/Record
檢查項目包括:
Field Summary | |
---|---|
static java.util.regex.Pattern |
unwantedPattern
|
Constructor Summary | |
---|---|
Catalog(java.util.List catalogList)
|
Method Summary | |
---|---|
java.util.HashMap |
collectMsg()
|
boolean |
hasColon()
分類間須以半形冒號(:)非全形冒號(:)作為區隔符號 |
boolean |
hasInvalidCategory()
分類名稱不接受? |
boolean |
hasInvalidOrgCategory()
分類間應避免意義重覆,如「典藏機構與計畫:機構計畫: ‥‥」 |
boolean |
hasLeast2Records()
至少要有「內容主題」與「典藏機構與計畫」兩種分類 |
boolean |
hasRecordLeast3Levels()
分類階層數不能小於3層,並且須避免出現空分類的情況,如「內容主題:人類學::::雅美(Yami):器物」 |
boolean |
isValidateCatalogRecordTag(int size)
|
boolean |
isValidateCatalogTag(org.jdom.Element catalogElement)
|
boolean |
useControlTerm()
「內容主題」分類的第2層,必須使用指定的分類詞彙,如:地質、新聞、生物、檔案…等 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.regex.Pattern unwantedPattern
Constructor Detail |
---|
public Catalog(java.util.List catalogList)
Method Detail |
---|
public boolean isValidateCatalogTag(org.jdom.Element catalogElement)
public boolean isValidateCatalogRecordTag(int size)
public boolean hasLeast2Records()
public boolean hasInvalidCategory()
public boolean hasInvalidOrgCategory()
public boolean useControlTerm()
public boolean hasColon()
public boolean hasRecordLeast3Levels()
public java.util.HashMap collectMsg()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |