/** * Initializes the properties of the instance. * * @param meta the property values to initialize the instance with. * * @throws NullPointerException if {@code meta} is {@code null}. */ protected void initializeProperties(final Properties meta) { Property p; if(meta == null) { throw new NullPointerException("meta"); } p = meta.getProperty("configurationBundle"); this._configurationBundle = (java.lang.String) p.getValue(); }
/** * Initializes the properties of the instance. * * @param meta the property values to initialize the instance with. * * @throws NullPointerException if {@code meta} is {@code null}. */ protected void initializeProperties(final Properties meta) { Property p; if(meta == null) { throw new NullPointerException("meta"); } p = meta.getProperty("maxDescriptions"); this._maxDescriptions = ((java.lang.Integer) p.getValue()).intValue(); p = meta.getProperty("maxTransactions"); this._maxTransactions = ((java.lang.Integer) p.getValue()).intValue(); }
/** * Initializes the properties of the instance. * * @param meta the property values to initialize the instance with. * * @throws NullPointerException if {@code meta} is {@code null}. */ protected void initializeProperties(final Properties meta) { Property p; if(meta == null) { throw new NullPointerException("meta"); } p = meta.getProperty("transactionSeparator"); this._transactionSeparator = (java.lang.String) p.getValue(); p = meta.getProperty("fileSeparator"); this._fileSeparator = (java.lang.String) p.getValue(); p = meta.getProperty("fileExtension"); this._fileExtension = (java.lang.String) p.getValue(); }
/** * Initializes the properties of the instance. * * @param meta the property values to initialize the instance with. * * @throws NullPointerException if {@code meta} is {@code null}. */ protected void initializeProperties(final Properties meta) { Property p; if(meta == null) { throw new NullPointerException("meta"); } p = meta.getProperty("transactionSeparator"); this._transactionSeparator = (java.lang.String) p.getValue(); p = meta.getProperty("fileSeparator"); this._fileSeparator = (java.lang.String) p.getValue(); p = meta.getProperty("fileExtension"); this._fileExtension = (java.lang.String) p.getValue(); }
/** * Indicates whether some other object is equal to this one by comparing * the values of all properties. * * @param o the reference object with which to compare. * * @return {@code true} if this object is the same as {@code o}; * {@code false} otherwise. */ public boolean equals( final Object o ) { boolean equal = this == o; if ( !equal && o instanceof Property ) { final Property that = (Property) o; equal = this.getName().equals( that.getName() ) && this.getType().equals( that.getType() ) && ( this.getValue() == null ? that.getValue() == null : this.getValue().equals( that.getValue() ) ); } return equal; }
/** * Initializes the properties of the instance. * * @param meta the property values to initialize the instance with. * * @throws NullPointerException if {@code meta} is {@code null}. */ protected void initializeProperties(final Properties meta) { Property p; if(meta == null) { throw new NullPointerException("meta"); } p = meta.getProperty("propertiesFileName"); this._propertiesFileName = (java.lang.String) p.getValue(); p = meta.getProperty("logfileName"); this._logfileName = (java.lang.String) p.getValue(); p = meta.getProperty("directoryName"); this._directoryName = (java.lang.String) p.getValue(); p = meta.getProperty("stateDirectoryName"); this._stateDirectoryName = (java.lang.String) p.getValue(); p = meta.getProperty("dataDirectoryName"); this._dataDirectoryName = (java.lang.String) p.getValue(); p = meta.getProperty("configDirectoryName"); this._configDirectoryName = (java.lang.String) p.getValue(); p = meta.getProperty("binDirectoryName"); this._binDirectoryName = (java.lang.String) p.getValue(); }
public Object getProperty( final Object object, final String propertyName ) { if ( object == null ) { throw new NullPointerException( "object" ); } if ( propertyName == null ) { throw new NullPointerException( "propertyName" ); } return this.getInstance( object, this.getImplementation( object ) ). getProperties().getProperty( propertyName ).getValue(); }
p.setValue( property.getValue() ); this.hashCode += p.hashCode();