Java PropertyTypes Overview |
---|
"name [type] [default value]"
.
Java API classes as type (35) |
|||||
---|---|---|---|---|---|
PropertyType options | |||||
Name | Type | Required | Optional | Value examples | Examples & Links |
BigDecimalPropertyType | java.math.BigDecimal |
|
|
[Examples] [API Doc] |
|
BigIntegerPropertyType | java.math.BigInteger |
|
|
[Examples] [API Doc] |
|
BooleanPropertyType | java.lang.Boolean |
|
|
[Examples] [API Doc] |
|
CharsetPropertyType | java.nio.charset.Charset |
|
|
[Examples] [API Doc] |
|
ClassnamePropertyType | java.lang.Class<?> |
|
|
[Examples] [API Doc] |
|
ColorPropertyType | java.awt.Color |
|
|
[Examples] [API Doc] |
|
ConnectionUrlPropertyType | java.lang.String |
|
[Examples] [API Doc] |
||
CountryPropertyType | java.util.Locale |
|
|
[Examples] [API Doc] |
|
DateFormatPropertyType | java.text.SimpleDateFormat |
|
|
[Examples] [API Doc] |
|
DateTimePropertyType | java.util.Date |
|
|
[Examples] [API Doc] |
|
DecimalFormatPropertyType | java.text.DecimalFormat |
|
|
[Examples] [API Doc] |
|
DirectoryPropertyType | java.io.File |
|
|
[Examples] [API Doc] |
|
DoublePropertyType | java.lang.Double |
|
|
[Examples] [API Doc] |
|
EmailPropertyType | java.lang.String |
|
|
[Examples] [API Doc] |
|
EnumPropertyType | T extends java.lang.Enum<T> |
|
|
|
[Examples] [API Doc] |
FilePropertyType | java.io.File |
|
|
[Examples] [API Doc] |
|
FileStructurePropertyType | java.io.File |
|
|
[Examples] [API Doc] |
|
FontPropertyType | java.awt.Font |
|
|
[Examples] [API Doc] |
|
IP4AddressPropertyType | java.lang.String |
|
|
[Examples] [API Doc] |
|
InetAddressPropertyType | java.net.InetAddress |
|
|
[Examples] [API Doc] |
|
IntegerPropertyType | java.lang.Integer |
|
|
[Examples] [API Doc] |
|
LdapNamePropertyType | javax.naming.ldap.LdapName |
|
|
[Examples] [API Doc] |
|
ListKeyValuePropertyType | java.util.List<dk.heick.properties.types.custom.KeyValueVO<K, V>> |
|
|
|
[Examples] [API Doc] |
ListPropertyType | java.util.List<T> |
|
|
|
[Examples] [API Doc] |
LocalePropertyType | java.util.Locale |
|
|
[Examples] [API Doc] |
|
LongPropertyType | java.lang.Long |
|
|
[Examples] [API Doc] |
|
MimeTypePropertyType | javax.activation.MimeType |
|
|
[Examples] [API Doc] |
|
ProxyPropertyType | java.net.Proxy |
|
|
[Examples] [API Doc] |
|
RegularExpressionPropertyType | java.lang.String |
|
|
|
[Examples] [API Doc] |
StringPropertiesPropertyType | java.util.Properties |
|
|
[Examples] [API Doc] |
|
StringPropertyType | java.lang.String |
|
|
[Examples] [API Doc] |
|
TimeUnitPropertyType | java.util.concurrent.TimeUnit |
|
|
[Examples] [API Doc] |
|
TimeZonePropertyType | java.util.TimeZone |
|
|
[Examples] [API Doc] |
|
URIPropertyType | java.net.URI |
|
|
[Examples] [API Doc] |
|
URLPropertyType | java.net.URL |
|
|
[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] |
---|---|---|
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"})); |