[Index]

Java PropertyTypes Overview


Java API classes as type (35)

  PropertyType options  
Name Type Required Optional Value examples Examples & Links
BigDecimalPropertyType java.math.BigDecimal  
  • defaultValue [BigDecimal] [null]
  • maxValue [BigDecimal] [null]
  • minValue [BigDecimal] [null]
  • -987654321987654321000000000.1234
  • 187654321987654321000000000.1234
[Examples]
[API Doc]
BigIntegerPropertyType java.math.BigInteger  
  • defaultValue [BigInteger] [null]
  • maxValue [BigInteger] [null]
  • minValue [BigInteger] [null]
  • -987654321987654321000000000
  • 187654321987654321000000000
[Examples]
[API Doc]
BooleanPropertyType java.lang.Boolean  
  • defaultValue [Boolean] [null]
  • true
  • t
  • on
  • yes
  • false
  • f
  • off
  • no
[Examples]
[API Doc]
CharsetPropertyType java.nio.charset.Charset  
  • defaultValue [Charset] [null]
  • UTF-8
  • iso-8859-1
[Examples]
[API Doc]
ClassnamePropertyType java.lang.Class<?>  
  • defaultValue [Class<?>] [null]
  • mustExtend [Class<?>] [null]
  • mustImplement [Class<?>] [null]
  • mustImplements [Class<?>[]] [null]
  • dk.heick.test.MyVO
[Examples]
[API Doc]
ColorPropertyType java.awt.Color  
  • defaultValue [Color] [null]
  • maxColor [Color] [null]
  • minColor [Color] [null]
  • RED
  • red
  • #DE112E
  • E2FD39
  • 0x337799ff
  • #237799ff
  • hsba(124.2,78.42% ,78.14%,0.43)
  • hsb(355.2,82.7% ,89.01%)
  • hsla(200 ,78%, 5%,0.55)
  • hsl(45.2,88.121%,99.112%)
  • hsva(355.2,82.7% ,89.01%,1.0)
  • hsv(234.8,80.05%,84.7%)
  • rgba(255,212,1,1.0)
  • rgb(255,212,1)
[Examples]
[API Doc]
ConnectionUrlPropertyType java.lang.String    
  • jdbc:hsqldb:mem:localbatch
  • jdbc:oracle:thin:Herong/TopSecret@localhost:1521:XE
[Examples]
[API Doc]
CountryPropertyType java.util.Locale  
  • defaultValue [Locale] [null]
  • DK
  • dk
  • US
  • Se
  • HN
[Examples]
[API Doc]
DateFormatPropertyType java.text.SimpleDateFormat  
  • defaultValue [SimpleDateFormat] [null]
  • defaultValueDateFormatPattern [String] [null]
  • yyyy-MM-dd HH:mm:ss
  • yyyy-MM-dd
  • yyyy.MM.dd G 'at' HH:mm:ss z
[Examples]
[API Doc]
DateTimePropertyType java.util.Date  
  • dateFormatPattern [String] [yyyy-MM-dd HH:mm:ss]
  • defaultValue [Date] [null]
  • maxValue [Date] [null]
  • minValue [Date] [null]
  • (Pattern : yyyy-MM-dd HH:mm:ss) 1973-11-28 19:30:00
  • (Pattern : yyyy-MM-dd) 1973-11-28
[Examples]
[API Doc]
DecimalFormatPropertyType java.text.DecimalFormat  
  • defaultValue [String] [null]
  • ###,###.###
  • 0000000.000
[Examples]
[API Doc]
DirectoryPropertyType java.io.File  
  • defaultValue [File] [null]
  • fileValidator [FileValidator] [new DefaultDirectoryValidator()]
  • /java/bin/
  • c:/temp
[Examples]
[API Doc]
DoublePropertyType java.lang.Double  
  • defaultValue [double] [null]
  • maxValue [double] [null]
  • minValue [double] [null]
  • 3.14
  • 45E23
[Examples]
[API Doc]
EmailPropertyType java.lang.String  
  • defaultValue [String] [null]
  • domainMustContain [String] [null]
  • peter@peter.dk
[Examples]
[API Doc]
EnumPropertyType T extends java.lang.Enum<T>
  • enumClazz [Class<T>]
  • defaultValue [T] [null]
  • (ENUM : MyColors) RED
[Examples]
[API Doc]
FilePropertyType java.io.File  
  • defaultValue [File] [null]
  • fileValidator [FileValidator] [new DefaultFileValidator()]
  • c:\temp\myfile.txt
  • ${java.io.tmpdir}${file.separator}myfile.txt
  • \opt\java\java14\java.sh
[Examples]
[API Doc]
FileStructurePropertyType java.io.File  
  • rootDirectoryNode [RootDirectoryNode] [null]
  • rootDirectoryNodeLocator [RootDirectoryNodeLocator] [null]
  • c:/app/data
[Examples]
[API Doc]
FontPropertyType java.awt.Font  
  • defaultValue [Font] [null]
  • Times New Roman-italic-24
  • Verdana-BOLD-16
  • Verdana italic 18
  • Times New Roman-bolditalic-22
  • Times New Roman-BOLDITAlic-23
  • Times New Roman
  • Dialog-plain-16
  • Verdana 18
  • Verdana italic
  • Verdana
[Examples]
[API Doc]
IP4AddressPropertyType java.lang.String  
  • defaultValue [String] [null]
  • 1.1.1.1
  • 132.254.111.10
  • 26.10.2.10
  • 127.0.0.1
[Examples]
[API Doc]
InetAddressPropertyType java.net.InetAddress  
  • defaultValue [InetAddress] [null]
  • 127.0.0.1
  • localhost/127.0.0.1
  • /127.0.0.1
  • www.nba.com/195.59.44.33
  • www.nba.com
[Examples]
[API Doc]
IntegerPropertyType java.lang.Integer  
  • defaultValue [int] [null]
  • maxValue [int] [null]
  • minValue [int] [null]
  • -123
  • 1234
  • 349942
[Examples]
[API Doc]
LdapNamePropertyType javax.naming.ldap.LdapName  
  • allowEmptyString [boolean] [true]
  • baseDN [String] [null]
  • defaultValue [LdapName] [null]
  • cn=Mango,ou=Fruits,o=Food
  • cn=WaterMelon,ou=Summer,ou=Fruits,o=Food,o=Resources
[Examples]
[API Doc]
ListKeyValuePropertyType java.util.List<dk.heick.properties.types.custom.KeyValueVO<K, V>>
  • keyType [PropertyType<K>]
  • valueType [PropertyType<V>]
  • defaultValue [List<KeyValueVO<K,V>>] [null]
  • elementDivider [String] [;]
  • keyValueDivider [String] [=]
  • maxNumberOfElements [Integer] [null]
  • minNumberOfElements [Integer] [null]
  • Name1=RED;Name2=BLUE
  • PI=3.14;E=2.71
[Examples]
[API Doc]
ListPropertyType java.util.List<T>
  • propertyType [PropertyType<T>]
  • defaultValue [List<T>] [null]
  • divider [String] [;]
  • maxLength [Integer] [null]
  • minLength [Integer] [null]
  • (URLPropertytype)o http://www.jp.dk
  • (URLPropertytype)o ftp://www.a.dk;ftp://b.uk
  • (IntegerPropertytype)o 1
  • (IntegerPropertytype)o 1;777;99;66
[Examples]
[API Doc]
LocalePropertyType java.util.Locale  
  • defaultValue [Locale] [null]
  • en
  • de
  • ja_JP_JP
  • es_PA
  • sr_BA
  • sv_SE
  • da_DK
  • es_HN
[Examples]
[API Doc]
LongPropertyType java.lang.Long  
  • defaultValue [long] [null]
  • maxValue [long] [null]
  • minValue [long] [null]
  • -123
  • 1234
  • 349942
[Examples]
[API Doc]
MimeTypePropertyType javax.activation.MimeType  
  • defaultValue [MimeType] [null]
  • text/html
  • image/gif
[Examples]
[API Doc]
ProxyPropertyType java.net.Proxy  
  • defaultValue [Proxy] [Proxy.NO_PROXY]
  • divider [final String] [;]
  • SOCKS;166.10.166.1;8080
  • 166.10.166.1;8080
  • DIRECT
[Examples]
[API Doc]
RegularExpressionPropertyType java.lang.String
  • pattern [String]
  • defaultValue [String] [null]
  • (Pattern : "[bcr]at") bato rat
[Examples]
[API Doc]
StringPropertiesPropertyType java.util.Properties  
  • defaultValue [Properties] [null]
  • elementDivider [String] [;]
  • maxNumberOfElements [Integer] [null]
  • minNumberOfElements [Integer] [null]
  • nameValueDivider [String] [=]
  • A=B;C=D;F=G
  • A=Horse;B=Cow;C=Pig
[Examples]
[API Doc]
StringPropertyType java.lang.String  
  • defaultValue [String] [null]
  • maxLength [int] [null]
  • minLength [Integer] [null]
  • pattern [Pattern] [null]
  • bat
  • rat
[Examples]
[API Doc]
TimeUnitPropertyType java.util.concurrent.TimeUnit  
  • defaultValue [TimeUnit] [null]
  • maxValue [TimeUnit] [null]
  • minValue [TimeUnit] [null]
  • nanoseconds
  • hours
  • SECONds
[Examples]
[API Doc]
TimeZonePropertyType java.util.TimeZone  
  • defaultValue [TimeZone] [null]
  • Europe/Copenhagen
  • America/Los_Angeles
[Examples]
[API Doc]
URIPropertyType java.net.URI  
  • defaultValue [URI] [null]
  • scheme [String] [null]
  • schemes [String[]] [null]
  • http://www.jp.dk
  • ldap://mysite.co.uk
[Examples]
[API Doc]
URLPropertyType java.net.URL  
  • defaultValue [URL] [null]
  • protocol [String] [null]
  • protocols [String[]] [null]
  • urlValidator [URLValidator] [new DefaultURLValidator()]
  • http://www.jp.dk
  • ftp://mysite.co.uk
[Examples]
[API Doc]








EXAMPLES



Example : BigDecimalPropertyType [to type] [to top]
Property<BigDecimal> A_PROPERTY = new Property<BigDecimal>("name", new BigDecimalPropertyType());
Property<BigDecimal> A_PROPERTY = new Property<BigDecimal>("name", new BigDecimalPropertyType(new BigDecimal("234129123897138917.1234212389719")));
Example : BigIntegerPropertyType [to type] [to top]
Property<BigInteger> A_PROPERTY = new Property<BigInteger>("name", new BigIntegerPropertyType());
Property<BigInteger> A_PROPERTY = new Property<BigInteger>("name", new BigIntegerPropertyType(new BigInteger("234129123897138917389719")));
Example : BooleanPropertyType [to type] [to top]
Property<Boolean> A_PROPERTY = new Property<Boolean>("name", new BooleanPropertyType());
Property<Boolean> A_PROPERTY = new Property<Boolean>("name", new BooleanPropertyType(true));
Example : CharsetPropertyType [to type] [to top]
Property<Charset> A_PROPERTY = new Property<Charset>("name", new CharsetPropertyType());
Property<Charset> A_PROPERTY = new Property<Charset>("name", new CharsetPropertyType(Charset.forName("UTF-8")));
Example : ClassnamePropertyType [to type] [to top]
Property<Class<?>> A_PROPERTY = new Property<Class<?>>("name", new ClassnamePropertyType(null,A.class,new Class[]{I1.class,I2.class}));
Property<Class<?>> A_PROPERTY = new Property<Class<?>>("name", new ClassnamePropertyType(D.class,A.class,new Class[]{I1.class,I2.class}));
Example : ColorPropertyType [to type] [to top]
Property<Color> A_PROPERTY = new Property<Color>("name", new ColorPropertyType());
Property<Color> A_PROPERTY = new Property<Color>("name", new ColorPropertyType(Color.blue));
Example : ConnectionUrlPropertyType [to type] [to top]
Property<String> A_PROPERTY = new Property<String>("name", new ConnectionUrlPropertyType());
Example : CountryPropertyType [to type] [to top]
Property<Locale> A_PROPERTY = new Property<Locale>("name", new CountryPropertyType());
Property<Locale> A_PROPERTY = new Property<Locale>("name", new CountryPropertyType(Locale.ENGLISH));
Example : DateFormatPropertyType [to type] [to top]
Property<SimpleDateFormat> A_PROPERTY = new Property<SimpleDateFormat>("name", new DateFormatPropertyType());
Property<SimpleDateFormat> A_PROPERTY = new Property<SimpleDateFormat>("name", new DateFormatPropertyType("yyMMddHHmmssZ"));
Property<SimpleDateFormat> A_PROPERTY = new Property<SimpleDateFormat>("name", new DateFormatPropertyType(new SimpleDateFormat("yyMMddHHmmssZ")));
Example : DateTimePropertyType [to type] [to top]
Property<Date> A_PROPERTY = new Property<Date>("name", new DateTimePropertyType());
Property<Date> A_PROPERTY = new Property<Date>("name", new DateTimePropertyType("dd/MM yyyy HH:mm:ss"));
Property<Date> A_PROPERTY = new Property<Date>("name", DateTimePropertyType.createTimeType(new Date(1234)));
Example : DecimalFormatPropertyType [to type] [to top]
Property<DecimalFormat> A_PROPERTY = new Property<DecimalFormat>("name", new DecimalFormatPropertyType());
Property<DecimalFormat> A_PROPERTY = new Property<DecimalFormat>("name", new DecimalFormatPropertyType("$###,###.###"));
Example : DirectoryPropertyType [to type] [to top]
Property<File> A_PROPERTY = new Property<File>("name" , new DirectoryPropertyType());
Property<File> A_PROPERTY = new Property<File>("name" , new DirectoryPropertyType(new File("c:/temp")));
Property<File> A_PROPERTY = new Property<File>("name" , new DirectoryPropertyType(new DefaultDirectoryValidator()));
Property<File> A_PROPERTY = new Property<File>("name" , new DirectoryPropertyType(new File("c:/temp"),new DefaultDirectoryValidator()));
Property<File> A_PROPERTY = new Property<File>("name" , new DirectoryPropertyType(new File("c:/temp"),new DefaultDirectoryValidator(true,true,true,false)));
Example : DoublePropertyType [to type] [to top]
Property<Double> A_PROPERTY = new Property<Double>("name", new DoublePropertyType(25));
Property<Double> A_PROPERTY = new Property<Double>("name", new DoublePropertyType(0,50));
Property<Double> A_PROPERTY = new Property<Double>("name", new DoublePropertyType(25,0,50));
Example : EmailPropertyType [to type] [to top]
Property<String> A_PROPERTY = new Property<String>("name", new EmailPropertyType());
Property<String> A_PROPERTY = new Property<String>("name", new EmailPropertyType("domain.com"));
Property<String> A_PROPERTY = new Property<String>("name", new EmailPropertyType("manager@domain.com","domain.com"));
Property<String> A_PROPERTY = new Property<String>("name", new EmailPropertyType("manager@domain.com",null));
Property<String> A_PROPERTY = new Property<String>("name", new EmailPropertyType(null,null));
Example : EnumPropertyType [to type] [to top]
Property<MyColors> P_ENUM_MYCOLORS = new Property<MyColors>("p.property.name",new EnumPropertyType<MyColors>(MyColors.class));
Example : FilePropertyType [to type] [to top]
Property<File> A_PROPERTY = new Property<File>("name", new FilePropertyType());
Property<File> A_PROPERTY = new Property<File>("name", new FilePropertyType(new File("c:\temp\test.htm"));
Property<File> A_PROPERTY = new Property<File>("name", new FilePropertyType(new File(new DefaultFileValidator()));
Property<File> A_PROPERTY = new Property<File>("name", new FilePropertyType(new File("c:\temp\test.htm"),new DefaultFileValidator()));
Property<File> A_PROPERTY = new Property<File>("name", new FilePropertyType(new File("c:\temp\test.htm"),new DefaultFileValidator(true,true,false,AcceptFileType.FILE)));
Example : FileStructurePropertyType [to type] [to top]
  • "root" [DIR]
    • conf [DIR]
      • users.xml [FILE]
      • reports.xml [FILE]
    • reports [DIR]
      • active [DIR]
        • report_a.xml
        • report_b.xml
        • report_c.xml
      • inactive [DIR]
    • temp [DIR]
    • deleted [DIR]
public final static RootDirectoryNode DIR_ROOT = new RootDirectoryNode();

public final static DirectoryNode DIR_CONF = new DirectoryNode("conf",DIR_ROOT);
public final static DirectoryNode DIR_REPORTS = new DirectoryNode("reports",DIR_ROOT);
public final static DirectoryNode DIR_REPORTS_ACTIVE = new DirectoryNode("active",DIR_REPORTS);
public final static DirectoryNode DIR_REPORTS_INACTIVE = new DirectoryNode("inactive",DIR_REPORTS);
public final static DirectoryNode DIR_TEMP = new DirectoryNode("temp",DIR_ROOT);
public final static DirectoryNode DIR_DELETED = new DirectoryNode("deleted",DIR_ROOT);

public final static FileNode FILE_USERS_XML = new FileNode("users.xml",new DefaultXmlFileValidator("com/myorg/xsd/users.xsd"),DIR_CONF);
public final static FileNode FILE_REPORTS_XML = new FileNode("reports.xml",new DefaultXmlFileValidator("com/myorg/xsd/reports.xsd"),DIR_CONF);

public final static FileNode FILE_REPORTS_XML = new FileNode("reports.xml",new DefaultXmlFileValidator(),DIR_CONF);

public final static FilterFileNode FILE_REPORTS_ACTIVE_XML = new FilterFileNode("report_*.xml",new DefaultXmlFileValidator("com/myorg/xsd/report.xsd"),DIR_REPORTS_ACTIVE);



public final static Property<File> A_PROPERTY = new Property<File>("name", new FileStructurePropertyType(DIR_ROOT));
Example : FontPropertyType [to type] [to top]
Property<Font> A_PROPERTY = new Property<Font>("name", new FontPropertyType());
Property<Font> A_PROPERTY = new Property<Font>("name", new FontPropertyType(new Font("Verdana",Font.BOLD,73)));
Example : IP4AddressPropertyType [to type] [to top]
Property<String> A_PROPERTY = new Property<String>("name", new IP4AddressPropertyType());
Property<String> A_PROPERTY = new Property<String>("name", new IP4AddressPropertyType("192.168.0.1"));
Example : InetAddressPropertyType [to type] [to top]
Property<InetAddress> A_PROPERTY = new Property<InetAddress>("name", new InetAddressPropertyType());
Property<InetAddress> A_PROPERTY = new Property<InetAddress>("name", new InetAddressPropertyType("127.0.0.1"));
Example : IntegerPropertyType [to type] [to top]
Property<Integer> A_PROPERTY = new Property<Integer>("name", new IntegerPropertyType(25));
Property<Integer> A_PROPERTY = new Property<Integer>("name", new IntegerPropertyType(0,50));
Property<Integer> A_PROPERTY = new Property<Integer>("name", new IntegerPropertyType(25,0,50));
Example : LdapNamePropertyType [to type] [to top]
Property<LdapName> A_PROPERTY = new Property<LdapName>("name", new LdapNamePropertyType());
Property<LdapName> A_PROPERTY = new Property<LdapName>("name", new LdapNamePropertyType(new LdapName("cn=Mango,ou=Fruits,o=Food")));
Property<LdapName> A_PROPERTY = new Property<LdapName>("name", new LdapNamePropertyType(",ou=Fruits,o=Food",new LdapName("cn=Mango,ou=Fruits,o=Food")));
Property<LdapName> A_PROPERTY = new Property<LdapName>("name", new LdapNamePropertyType(",ou=Fruits,o=Food",new LdapName("cn=Mango,ou=Fruits,o=Food"),true));
Example : ListKeyValuePropertyType [to type] [to top]
Property<List<KeyValueVO<String,Double>>> A_PROPERTY = new Property<List<KeyValueVO<String,Double>>>("javatype.app.list.keyvalue",new ListKeyValuePropertyType<String,Double>(new StringPropertyType(),new DoublePropertyType(0,20E20)));
Example : ListPropertyType [to type] [to top]
Property<List<URL>> P_LIST_URLS = new Property<List<URL>>("p.list.urls", new ListPropertyType<URL>(new URLPropertyType("http")));
Example : LocalePropertyType [to type] [to top]
Property<Locale> A_PROPERTY = new Property<Locale>("name", new LocalePropertyType());
Property<Locale> A_PROPERTY = new Property<Locale>("name", new LocalePropertyType(Locale.ENGLISH));
Example : LongPropertyType [to type] [to top]
Property<Long> A_PROPERTY = new Property<Long>("name", new LongPropertyType(25));
Property<Long> A_PROPERTY = new Property<Long>("name", new LongPropertyType(0,50));
Property<Long> A_PROPERTY = new Property<Long>("name", new LongPropertyType(25,0,50));
Example : MimeTypePropertyType [to type] [to top]
Property<MimeType> A_PROPERTY = new Property<MimeType>("name", new MimeTypePropertyType());
Property<MimeType> A_PROPERTY = new Property<MimeType>("name", new MimeTypePropertyType("application/json"));
Example : ProxyPropertyType [to type] [to top]
Property<Proxy> A_PROPERTY = new Property<Proxy>("name", new ProxyPropertyType());
Property<Proxy> A_PROPERTY = new Property<Proxy>("name", new ProxyPropertyType(new Proxy(Proxy.Type.HTTP,new InetSocketAddress("166.10.166.1", 8080)));
Property<Proxy> A_PROPERTY = new Property<Proxy>("name", new ProxyPropertyType(new Proxy(Proxy.Type.HTTP,new InetSocketAddress("166.10.166.1", 8080)),"#");
Example : RegularExpressionPropertyType [to type] [to top]
Property<String> A_PROPERTY = new Property<String>("name", new RegularExpressionPropertyType("[bcr]at"));
Property<String> A_PROPERTY = new Property<String>("name", new RegularExpressionPropertyType("[bcr]at","bat"));
Example : StringPropertiesPropertyType [to type] [to top]
Property<Properties> A_PROPERTY = new Property<Properties>("name", new StringPropertiesPropertyType());
Property<Properties> A_PROPERTY = new Property<Properties>("name", new StringPropertiesPropertyType(",","#"));
Property<Properties> A_PROPERTY = new Property<Properties>("name", new StringPropertiesPropertyType(";","=",3,9));
Property<Properties> A_PROPERTY = new Property<Properties>("name", new StringPropertiesPropertyType(3,9));
Property<Properties> A_PROPERTY = new Property<Properties>("name", new StringPropertiesPropertyType(3));
Example : StringPropertyType [to type] [to top]
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType());
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType("def"));
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType(80));
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType("def",80));
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType(5,69));
Property<String> A_PROPERTY = new Property<String>("name", new StringPropertyType("def",5,69));
Example : TimeUnitPropertyType [to type] [to top]
Property<TimeUnit> A_PROPERTY = new Property<TimeUnit>("name", new TimeUnitPropertyType());
Property<TimeUnit> A_PROPERTY = new Property<TimeUnit>("name", new TimeUnitPropertyType(TimeUnit.HOURS));
Example : TimeZonePropertyType [to type] [to top]
Property<TimeZone> A_PROPERTY = new Property<TimeZone>("name", new TimeZonePropertyType());
Property<TimeZone> A_PROPERTY = new Property<TimeZone>("name", new TimeZonePropertyType(TimeZone.getTimeZone("GMT")));
Example : URIPropertyType [to type] [to top]
Property<URI> A_PROPERTY = new Property<URI>("name", new URIPropertyType());
Property<URI> A_PROPERTY = new Property<URI>("name", new URIPropertyType("http"));
Property<URI> A_PROPERTY = new Property<URI>("name", new URIPropertyType(new URI("ldap://myldap.comp.dk"),"http"));
Property<URI> A_PROPERTY = new Property<URI>("name", new URIPropertyType(new String[]{"http","ftp"}));
Property<URI> A_PROPERTY = new Property<URI>("name", new URIPropertyType(new URI("http://www.jp.dk"),new String[]{"http","ftp"}));
Example : URLPropertyType [to type] [to top]
Property<URL> A_PROPERTY = new Property<URL>("name", new URLPropertyType());
Property<URL> A_PROPERTY = new Property<URL>("name", new URLPropertyType("http"));
Property<URL> A_PROPERTY = new Property<URL>("name", new URLPropertyType(new URL("http://www.jp.dk"),"http"));
Property<URL> A_PROPERTY = new Property<URL>("name", new URLPropertyType(new String[]{"http","ftp"}));
Property<URL> A_PROPERTY = new Property<URL>("name", new URLPropertyType(new URL("http://www.jp.dk"),new String[]{"http","ftp"}));