All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ja.address.conf Maven / Gradle / Ivy

The newest version!
include "name.conf"

address {
  postal-code-builder = {options = [{parts = [{type = "string-part", value = "###-####"}]}]}
  city-prefixes = ["北",  "東",  "西",  "南",  "新",  "大",  "中", "小"]
  city-suffixes = ["市",  "区",  "町",  "村", "郡"]
  city-builder = {
    options = [
      {parts = [{type = "seq-string-part", value = ${address.city-prefixes}}, {type = "seq-string-part", value = ${name.first.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${name.first.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${address.city-prefixes}}, {type = "seq-string-part", value = ${name.last.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${name.last.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
    ]
  }

  street-name-builder = {
    options = [
      {parts = [{type = "seq-string-part", value = ${name.first.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${name.last.names}}, {type = "seq-string-part", value = ${address.city-suffixes}}]},
    ]
  }
  street-address-builder = {options = [{parts = [{type = "seq-string-part", value = ${address.building-numbers}, suffix = " "}, {type = "string-builder-part", value = ${address.street-name-builder}}]}]}
  states = [
    {type = "prefecture", abbr = 1, name = "北海道", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 2, name =  "青森県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 3, name =  "岩手県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 4, name =  "宮城県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 5, name =  "秋田県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 6, name =  "山形県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 7, name =  "福島県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 8, name =  "茨城県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 9, name =  "栃木県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 10, name =  "群馬県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 11, name =  "埼玉県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 12, name =  "千葉県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 13, name =  "東京都", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 14, name =  "神奈川県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 15, name =  "新潟県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 16, name =  "富山県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 17, name =  "石川県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 18, name =  "福井県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 19, name =  "山梨県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 20, name =  "長野県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 21, name =  "岐阜県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 22, name =  "静岡県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 23, name =  "愛知県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 24, name =  "三重県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 25, name =  "滋賀県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 26, name =  "京都府", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 27, name =  "大阪府", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 28, name =  "兵庫県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 29, name =  "奈良県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 30, name =  "和歌山県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 31, name =  "鳥取県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 32, name =  "島根県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 33, name =  "岡山県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 34, name =  "広島県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 35, name =  "山口県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 36, name =  "徳島県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 37, name =  "香川県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 38, name =  "愛媛県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 39, name =  "高知県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 40, name =  "福岡県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 41, name =  "佐賀県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 42, name =  "長崎県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 43, name =  "熊本県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 44, name =  "大分県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 45, name =  "宮崎県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 46, name =  "鹿児島県", postal-code-builder = ${address.postal-code-builder}},
    {type = "prefecture", abbr = 47, name =  "沖縄県", postal-code-builder = ${address.postal-code-builder}}
  ]

  building-numbers = ["####", "###", "##", "#"]
  default-countries = [{code = "JA", name = 日本}]
  full-address-builder = {
    options = [
      {parts = [{type = "string-builder-part", value = ${address.street-address-builder}, suffix = ", "}, {type = "string-builder-part", value = ${address.city-builder}}, {type = "seq-state-zip-part", value = ${address.states}}]}
    ]
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy