ORG.oclc.mantisbase.util
Class XMLTranslater
java.lang.Object
|
+--ORG.oclc.mantisbase.util.XMLTranslater
- public class XMLTranslater
- extends Object
Method Summary |
static Document |
cloneDocument(Document doc)
|
static Element |
cloneElement(Element el,
Document doc)
|
int |
countRealChildren(DataDir dir)
|
static void |
doIDs(Document doc)
|
void |
dumpDoc(Document xmldoc)
|
static Vector |
findAllChildren(Element parent,
String tag)
|
static Element |
findChild(Element parent,
String tag)
|
DataDir |
fixMARC(DataDir dir)
|
static void |
freqDecodeDir(DataDir dir)
|
static void |
freqEncodeDir(DataDir dir)
|
Document |
fromTransport(String str)
|
Document |
fromTransport(String str,
TagFile tf)
|
DataDir |
fromTransportDir(String str)
|
static String |
fromTransportString(String str)
|
Vector |
getChildren(DataDir dir,
int f)
|
Vector |
getChildren(DataDir dir,
int f,
Hashtable h)
|
String |
getID(DataDir dir)
|
Vector |
getLeafNodes(Element el)
|
boolean |
getMARC()
|
Vector |
getPrimitiveChildren(DataDir dir)
|
static String |
getRDFValue(Element el)
|
String |
getValue(DataDir dir,
int fldid)
|
static String |
getValue(Element el,
String tag)
|
boolean |
isGenerated(DataDir dir)
|
boolean |
isPrimitive(DataDir dir)
|
static String |
loadFile(String filename)
|
Hashtable |
makeChildrenHash(DataDir dir)
|
Vector |
makeChildrenVector(DataDir dir)
|
void |
merge(DataDir master,
DataDir slave,
DataDir newdir)
|
void |
merge(Element template,
DataDir data,
Element newdoc,
Document rootdoc)
|
void |
merge(Element template,
DataDir data,
Element newdoc,
Document rootdoc,
boolean marc)
|
void |
setMARC(boolean m)
|
void |
strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix)
|
void |
strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix,
boolean stripToken)
|
void |
strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix,
int level,
boolean stripToken)
|
DataDir |
toDir(Document xmldoc)
|
DataDir |
toDir(Element root)
|
DataDir |
toDir(String data)
|
Document |
toDoc(DataDir dir)
|
Document |
toDoc(String data)
|
Element |
toElement(DataDir dir)
|
String |
toHTMLString(Document xmldoc)
|
Document |
toLongDoc(Document doc)
|
String |
toSGML(DataDir dir)
|
String |
toSGML(DataDir dir,
boolean marc)
|
static String |
toSGML(Document xmldoc)
|
static String |
toSGML(Element el)
|
String |
toSGML(String data)
|
String |
toString(Document xmldoc)
|
String |
toTransport(Document xmldoc)
|
String |
toTransportDir(DataDir dir)
|
static String |
toTransportString(String str)
|
Document |
toUTFDoc(DataDir dir)
|
Document |
toUTFDoc(DataDir dir,
TagFile tf)
|
Document |
toWideDoc(Document doc)
|
static String |
toWideSGML(Document xmldoc)
|
DataDir |
unfixMARC(DataDir dir)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
tf
public TagFile tf
recordSeparator
public String recordSeparator
rdfvaluenum
public int rdfvaluenum
rdftypenum
public int rdftypenum
mantisgroupnum
public int mantisgroupnum
mantisacceptnum
public int mantisacceptnum
pcdatanum
public int pcdatanum
tokennum
public int tokennum
attributenum
public int attributenum
mantisidnum
public int mantisidnum
mantiswildcardnum
public int mantiswildcardnum
mantispatternnum
public int mantispatternnum
mantisrecursenum
public int mantisrecursenum
mantisdataorder
public int mantisdataorder
fld_tbl
public static final int[] fld_tbl
fld_id
public static final int[] fld_id
XMLTranslater
public XMLTranslater(TagFile tf)
XMLTranslater
public XMLTranslater()
XMLTranslater
public XMLTranslater(String tagfile)
XMLTranslater
public XMLTranslater(String tagfile,
String tagdata)
XMLTranslater
public XMLTranslater(String tagfile,
String tagdata,
String lockHost,
int lockPort)
setMARC
public void setMARC(boolean m)
getMARC
public boolean getMARC()
fixMARC
public DataDir fixMARC(DataDir dir)
unfixMARC
public DataDir unfixMARC(DataDir dir)
merge
public void merge(Element template,
DataDir data,
Element newdoc,
Document rootdoc)
merge
public void merge(Element template,
DataDir data,
Element newdoc,
Document rootdoc,
boolean marc)
merge
public void merge(DataDir master,
DataDir slave,
DataDir newdir)
strip
public void strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix)
strip
public void strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix,
boolean stripToken)
strip
public void strip(DataDir template,
DataDir data,
DataDir newdir,
String prefix,
int level,
boolean stripToken)
doIDs
public static void doIDs(Document doc)
getRDFValue
public static String getRDFValue(Element el)
getChildren
public Vector getChildren(DataDir dir,
int f,
Hashtable h)
getChildren
public Vector getChildren(DataDir dir,
int f)
freqEncodeDir
public static void freqEncodeDir(DataDir dir)
freqDecodeDir
public static void freqDecodeDir(DataDir dir)
makeChildrenHash
public Hashtable makeChildrenHash(DataDir dir)
makeChildrenVector
public Vector makeChildrenVector(DataDir dir)
getPrimitiveChildren
public Vector getPrimitiveChildren(DataDir dir)
countRealChildren
public int countRealChildren(DataDir dir)
getID
public String getID(DataDir dir)
isGenerated
public boolean isGenerated(DataDir dir)
isPrimitive
public boolean isPrimitive(DataDir dir)
toDoc
public Document toDoc(String data)
toLongDoc
public Document toLongDoc(Document doc)
toWideDoc
public Document toWideDoc(Document doc)
toTransportString
public static String toTransportString(String str)
fromTransportString
public static String fromTransportString(String str)
toTransportDir
public String toTransportDir(DataDir dir)
fromTransportDir
public DataDir fromTransportDir(String str)
toTransport
public String toTransport(Document xmldoc)
fromTransport
public Document fromTransport(String str)
fromTransport
public Document fromTransport(String str,
TagFile tf)
toDir
public DataDir toDir(String data)
toDir
public DataDir toDir(Element root)
toDir
public DataDir toDir(Document xmldoc)
toSGML
public String toSGML(String data)
toSGML
public static String toSGML(Document xmldoc)
toSGML
public static String toSGML(Element el)
toWideSGML
public static String toWideSGML(Document xmldoc)
dumpDoc
public void dumpDoc(Document xmldoc)
toSGML
public String toSGML(DataDir dir)
toSGML
public String toSGML(DataDir dir,
boolean marc)
toDoc
public Document toDoc(DataDir dir)
toElement
public Element toElement(DataDir dir)
toUTFDoc
public Document toUTFDoc(DataDir dir)
toUTFDoc
public Document toUTFDoc(DataDir dir,
TagFile tf)
toString
public String toString(Document xmldoc)
toHTMLString
public String toHTMLString(Document xmldoc)
loadFile
public static String loadFile(String filename)
getLeafNodes
public Vector getLeafNodes(Element el)
cloneDocument
public static Document cloneDocument(Document doc)
cloneElement
public static Element cloneElement(Element el,
Document doc)
getValue
public static final String getValue(Element el,
String tag)
getValue
public final String getValue(DataDir dir,
int fldid)
findChild
public static Element findChild(Element parent,
String tag)
findAllChildren
public static Vector findAllChildren(Element parent,
String tag)