public class UTLFFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
UTLFFactory.ContentLexicalFormHandler |
static class |
UTLFFactory.RemoteMachineSpec |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_DTD
The DTD for content.
|
static UTLFResolver |
defaultResolver |
static String |
DefaultUTLFMachineConfigurationURL |
static int |
DoNotUseGrid |
(package private) static DTDCache |
dtdHandler |
static double |
ForceToUseGridRatio |
static int |
Normalize_OneWord |
static int |
Normalize_OPTION |
static int |
Normalize_removeEmpty |
static int |
Normalize_Text |
static int |
Normalize_withKey |
static double |
PreferToUseGridLoadAverageRatio |
static int |
RDFCreateByMyself_Elements
グリッドを使わずに自身でRDFを作成するエレメント数.
UTLFContentに含まれるエレメント数.(RDFの属性は含まない)
標準的なEncapsulated UTLFでは,Element数は1個.
|
static int |
RDFParseByMyself_Elements
グリッドを使わずに自身でRDFをパースするエレメント数.
標準的なEncapsulated UTLFでは,Element数(Entityを含む)は17個.
|
(package private) static UTLFGrid<? extends UTLFMachine> |
utlfGrid |
(package private) static UTLFCache |
utlfRetriever |
| Constructor and Description |
|---|
UTLFFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
canUseGrid(int opt) |
static boolean |
checkEquivalence(UTLF u1,
File file,
int opt) |
static boolean |
checkEquivalence(UTLF u1,
UTLF u2,
int opt) |
static String |
createContentLexicalForm(Document document,
int indent) |
static UTLF |
createEncapsulatedUTLF(UTLFId id,
String title,
CharSequence content,
String mimetype,
String scope)
Create UTLF with data encapsulation.
|
static boolean |
doNotUseGrid(int opt) |
static UTLF |
enDict(UTLF utlf,
List<UPath> keys,
boolean unique) |
static UOp.Variable |
executeGridOps(UOps ops) |
static UOp.Variable |
executeGridOps(UOps ops,
PrintWriter err) |
(package private) static DocumentBuilder |
getContentParser() |
static org.jrdf.graph.Graph |
getNewGraph() |
static UDict |
getRemoteMachineGrid(URL url,
String name) |
static List<String> |
getRemoteMachineServers(URL url,
String name) |
static UTLFFactory.RemoteMachineSpec |
getRemoteMachineSpec(boolean ssl,
UDict dict) |
static UTLFFactory.RemoteMachineSpec |
getRemoteMachineSpec(boolean ssl,
UDict dict,
URL defaultConfig) |
static TransformerHandler |
getSAXTransformerHandler() |
static XMLReader |
getSAXXMLReader() |
static <T extends UObject> |
getSingleObject(Class<T> clas,
UTLF u,
T dv)
Get single object from UTLF.
|
(package private) static Transformer |
getTransformer() |
(package private) static Transformer |
getTransformer(String systemId) |
static boolean |
gridIsAttached() |
static UTLF |
load(File file,
int opt) |
(package private) static UTLF |
load(URL url,
int opt) |
static UTLF |
loadWithOperation(File file,
UOp op,
List<UPath> enDictKeys) |
static <T> T |
normalize(T obj,
int opt) |
static UTLF |
normalize(UTLF obj,
int opt) |
static boolean |
normalizeRDF(File dst,
File src,
int opt,
UTLFId id,
ZonedDateTime zdt) |
static boolean |
normalizeRDF(Writer dst,
Reader src,
int opt,
UTLFId id,
ZonedDateTime zdt) |
static String |
normalizeText(String s,
int opt) |
static UTLF |
parse(byte[] rdfutf8,
int opt) |
(package private) static Document |
parseDocument(CharSequence xml) |
static UTLF |
parseMeta(byte[] rdfutf8,
int opt) |
static boolean |
preferToUseGrid_LoadAverageRatio(double ratio) |
static PPForRegister.Result |
preprocessForRegister(File newFile,
File oldFile) |
static PPForRegister.Result |
preprocessForRegister(UTLF newUTLF,
File oldFile) |
static PPForRegister.Result |
preprocessForRegister(UTLF newUTLF,
UTLF oldUTLF) |
(package private) static UTLF |
rdf_to_utlf(StringBuffer rdf,
int opt) |
(package private) static UTLF |
retrieveUTLF(URL url) |
static void |
save(File file,
UTLF utlf) |
static void |
setDefaultResolver(UTLFResolver res) |
static void |
setUTLFGrid(UTLFGrid<? extends UTLFMachine> grid) |
(package private) static StringBuffer |
utlf_to_rdf(UTLF u,
int opt) |
static boolean |
verify(byte[] rdfutf8,
int opt) |
public static int RDFParseByMyself_Elements
public static int RDFCreateByMyself_Elements
public static double ForceToUseGridRatio
public static double PreferToUseGridLoadAverageRatio
public static UTLFResolver defaultResolver
public static final String CONTENT_DTD
static DTDCache dtdHandler
static UTLFCache utlfRetriever
public static final int Normalize_Text
public static final int Normalize_withKey
public static final int Normalize_OneWord
public static final int Normalize_removeEmpty
public static final int Normalize_OPTION
public static final int DoNotUseGrid
public static final String DefaultUTLFMachineConfigurationURL
static UTLFGrid<? extends UTLFMachine> utlfGrid
public static boolean preferToUseGrid_LoadAverageRatio(double ratio)
public static org.jrdf.graph.Graph getNewGraph()
static DocumentBuilder getContentParser()
public static XMLReader getSAXXMLReader() throws ParserConfigurationException, SAXException
public static TransformerHandler getSAXTransformerHandler() throws TransformerConfigurationException
static Transformer getTransformer() throws TransformerException
TransformerExceptionstatic Transformer getTransformer(String systemId) throws TransformerException
TransformerExceptionpublic static void setDefaultResolver(UTLFResolver res)
static UTLF retrieveUTLF(URL url) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static boolean doNotUseGrid(int opt)
static boolean canUseGrid(int opt)
public static <T> T normalize(T obj,
int opt)
throws UTLFException
UTLFExceptionpublic static UTLF normalize(UTLF obj, int opt) throws UTLFException
UTLFExceptionpublic static boolean normalizeRDF(Writer dst, Reader src, int opt, UTLFId id, ZonedDateTime zdt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static boolean normalizeRDF(File dst, File src, int opt, UTLFId id, ZonedDateTime zdt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UOp.Variable executeGridOps(UOps ops, PrintWriter err) throws UTLFException
UTLFExceptionpublic static UOp.Variable executeGridOps(UOps ops) throws UTLFException
UTLFExceptionpublic static UTLF loadWithOperation(File file, UOp op, List<UPath> enDictKeys) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UTLF enDict(UTLF utlf, List<UPath> keys, boolean unique) throws UTLFException
UTLFExceptionstatic UTLF rdf_to_utlf(StringBuffer rdf, int opt) throws UTLFException
UTLFExceptionstatic UTLF load(URL url, int opt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UTLF load(File file, int opt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UTLF parse(byte[] rdfutf8, int opt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UTLF parseMeta(byte[] rdfutf8, int opt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static boolean verify(byte[] rdfutf8,
int opt)
throws UTLFException,
IOException
UTLFExceptionIOExceptionstatic StringBuffer utlf_to_rdf(UTLF u, int opt) throws UTLFException
UTLFExceptionpublic static void save(File file, UTLF utlf) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static boolean checkEquivalence(UTLF u1, UTLF u2, int opt) throws UTLFException
UTLFExceptionpublic static boolean checkEquivalence(UTLF u1, File file, int opt) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static PPForRegister.Result preprocessForRegister(File newFile, File oldFile) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static PPForRegister.Result preprocessForRegister(UTLF newUTLF, File oldFile) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static PPForRegister.Result preprocessForRegister(UTLF newUTLF, UTLF oldUTLF) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static List<String> getRemoteMachineServers(URL url, String name) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UDict getRemoteMachineGrid(URL url, String name) throws UTLFException, IOException
UTLFExceptionIOExceptionpublic static UTLFFactory.RemoteMachineSpec getRemoteMachineSpec(boolean ssl, UDict dict, URL defaultConfig) throws UTLFException, IOException, MalformedURLException
public static UTLFFactory.RemoteMachineSpec getRemoteMachineSpec(boolean ssl, UDict dict) throws UTLFException, IOException, MalformedURLException
public static boolean gridIsAttached()
public static void setUTLFGrid(UTLFGrid<? extends UTLFMachine> grid)
public static <T extends UObject> T getSingleObject(Class<T> clas, UTLF u, T dv) throws UTLFException
T - desired class.clas - type specifier.u - UTLF.dv - defalut value.UTLFException - UTLF処理にエラーが発生した場合.public static UTLF createEncapsulatedUTLF(UTLFId id, String title, CharSequence content, String mimetype, String scope) throws UTLFException
id - UTLF Identifier.title - Title.content - data to be encapsuled.mimetype - mimetype of data.scope - UTLFScopeUTLFException - UTLF処理にエラーが発生した場合.public static String createContentLexicalForm(Document document, int indent)
static Document parseDocument(CharSequence xml) throws UTLFException
UTLFExceptionEDB Working Group at Tue May 26 16:39:03 JST 2026