gggd.xml
クラス XsdDataType

java.lang.Object
  拡張gggd.xml.XsdDefs
      拡張gggd.xml.XsdDataType
すべての実装インタフェース:
java.lang.Cloneable
直系の既知のサブクラス:
XsdGroup

class XsdDataType
extends XsdDefs

XsdDataTypeクラス


フィールドの概要
(パッケージプライベート)  java.util.ArrayList attributeList
           
(パッケージプライベート)  java.lang.Object content
           
(パッケージプライベート)  org.w3c.dom.Node defs
           
(パッケージプライベート)  java.lang.String genericType
           
(パッケージプライベート)  boolean isBuiltin
           
(パッケージプライベート)  java.lang.String name
           
(パッケージプライベート)  XsdDataType parent
           
(パッケージプライベート)  java.lang.String sqlType
           
(パッケージプライベート)  java.util.ArrayList sqlTypeOpt
           
 
コンストラクタの概要
(パッケージプライベート) XsdDataType()
          引数無しのコンストラクタを定義します。
(パッケージプライベート) XsdDataType(org.w3c.dom.Node defs)
          コンストラクタを定義します。
 
メソッドの概要
 java.lang.Object clone()
           
(パッケージプライベート)  void collectAttributes(XsdExpandedStructure exStruct, XsdSqlTable table, java.lang.String fullXPathPrefix, java.lang.String relXPathPrefix)
          XsdAttributeクラスのインスタンスをリストに格納します。
(パッケージプライベート)  java.util.ArrayList collectSqlTables(java.util.ArrayList result)
          XsdSqlTableクラスのインスタンスをリストに格納します。
(パッケージプライベート)  void convertToSqlColumn(java.lang.String colName, XsdExpandedStructure exStruct, XsdSqlTable table, java.lang.String tableXPath, java.lang.String columnXPath, java.util.ArrayList typeopts)
          SQLカラム定義に変換します。
(パッケージプライベート) static XsdDataType defineBuiltInType(java.lang.String gentype, java.lang.String name, java.lang.String sqlName, java.util.ArrayList optarg)
          builtin typesを定義します。
(パッケージプライベート)  void scan(XsdSchema topschema)
          XsdSchemaクラスのインスタンスをスキャンします。
(パッケージプライベート)  void scanBody(XsdSchema topschema, org.w3c.dom.Node n)
          XsdSchemaクラスのインスタンス(Boby部分)をスキャンします。
(パッケージプライベート)  void setDefs(org.w3c.dom.Node defs)
          初期設定を行います。
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

content

java.lang.Object content

parent

XsdDataType parent

isBuiltin

boolean isBuiltin

genericType

java.lang.String genericType

sqlType

java.lang.String sqlType

sqlTypeOpt

java.util.ArrayList sqlTypeOpt

attributeList

java.util.ArrayList attributeList

defs

org.w3c.dom.Node defs

name

java.lang.String name
コンストラクタの詳細

XsdDataType

XsdDataType()
引数無しのコンストラクタを定義します。


XsdDataType

XsdDataType(org.w3c.dom.Node defs)
コンストラクタを定義します。

パラメータ:
defs - DOMノード
メソッドの詳細

defineBuiltInType

static XsdDataType defineBuiltInType(java.lang.String gentype,
                                     java.lang.String name,
                                     java.lang.String sqlName,
                                     java.util.ArrayList optarg)
builtin typesを定義します。

パラメータ:
gentype - gentype文字列
name - name属性の値
sqlName - SQLタイプ名
optarg - 制約リスト
戻り値:
XsdDataTypeクラスのインスタンス

scan

void scan(XsdSchema topschema)
    throws java.lang.Exception
XsdSchemaクラスのインスタンスをスキャンします。

パラメータ:
topschema - XsdSchemaクラスのインスタンス
例外:
java.lang.Exception - エラーが発生した場合にスローされる。

scanBody

void scanBody(XsdSchema topschema,
              org.w3c.dom.Node n)
        throws java.lang.Exception
XsdSchemaクラスのインスタンス(Boby部分)をスキャンします。

パラメータ:
topschema - XsdSchemaクラスのインスタンス
n - DOMノード
例外:
java.lang.Exception - エラーが発生した場合にスローされる。

convertToSqlColumn

void convertToSqlColumn(java.lang.String colName,
                        XsdExpandedStructure exStruct,
                        XsdSqlTable table,
                        java.lang.String tableXPath,
                        java.lang.String columnXPath,
                        java.util.ArrayList typeopts)
SQLカラム定義に変換します。

パラメータ:
colName - カラム名
exStruct - XsdExpandedStructureクラスのインスタンス
table - XsdSqlTableクラスのインスタンス
tableXPath - tableXPathの値
columnXPath - columnXPathの値
typeopts - 制約リスト

collectAttributes

void collectAttributes(XsdExpandedStructure exStruct,
                       XsdSqlTable table,
                       java.lang.String fullXPathPrefix,
                       java.lang.String relXPathPrefix)
XsdAttributeクラスのインスタンスをリストに格納します。

パラメータ:
exStruct - XsdExpandedStructureクラスのインスタンス
table - XsdSqlTableクラスのインスタンス
fullXPathPrefix - fullXPathPrefixの値
relXPathPrefix - relXPathPrefixの値

collectSqlTables

java.util.ArrayList collectSqlTables(java.util.ArrayList result)
XsdSqlTableクラスのインスタンスをリストに格納します。

パラメータ:
result - 結果格納用リスト
戻り値:
実行結果のリスト

setDefs

void setDefs(org.w3c.dom.Node defs)
初期設定を行います。

パラメータ:
defs - DOMノード

clone

public java.lang.Object clone()