public boolean contains( CSSValue value ) { for ( int i = 0; i < values.length; i++ ) { CSSValue cssValue = values[ i ]; if ( ObjectUtilities.equal( cssValue, value ) ) { return true; } } return false; }
public boolean isValid( final long changeTracker, final long attrsChangeTracker, final String text ) { if ( changeTracker != this.changeTracker ) { return false; } if ( attrsChangeTracker != this.attrChangeTracker ) { return false; } return ObjectUtilities.equal( text, originalText ); } }
public void setTimeZone( final TimeZone timeZone ) { if ( ObjectUtilities.equal( timeZone, this.timeZone ) ) { return; } this.timeZone = timeZone; this.parameters = null; this.oldParameters = null; this.cachedValue = null; this.fields = null; this.format = null; }
public SequenceDescription[] getSequencesForGroup( final String groupName, final Locale locale ) { final ArrayList<SequenceDescription> sequenceGroups = new ArrayList<SequenceDescription>(); for ( final SequenceDescription sd : sequences ) { if ( ObjectUtilities.equal( groupName, sd.getSequenceGroup( locale ) ) ) { sequenceGroups.add( sd ); } } return sequenceGroups.toArray( new SequenceDescription[sequenceGroups.size()] ); }
/** * Checks whether the given url denotes the same namespace as the element's namespace. * * @param namespaceURI the namespace that should be tested. * @return true, if the namespace matches the element's namespace,false otherwise. */ protected boolean isSameNamespace( final String namespaceURI ) { return ObjectUtilities.equal( namespaceURI, getUri() ); }
public Messages getBundle( final Locale locale ) { if ( locale == null ) { throw new NullPointerException(); } if ( lastMessages == null || ObjectUtilities.equal( locale, lastLocale ) == false ) { lastMessages = new Messages( locale, bundleLocation, ObjectUtilities.getClassLoader( AbstractMetaData.class ) ); lastLocale = locale; } return lastMessages; }
private boolean isFiltered( final CSSKeys key, final StyleCarrier value ) { if ( parentStyle == null ) { return false; } if ( key.isInherit() == false ) { return false; } if ( ObjectUtilities.equal( parentStyle[key.ordinal()], value ) ) { return true; } return false; }
private boolean isFiltered( final CSSKeys key, final StyleCarrier value ) { if ( parentStyle == null ) { return false; } if ( key.isInherit() == false ) { return false; } if ( ObjectUtilities.equal( parentStyle[key.ordinal()], value ) ) { return true; } return false; }
public Object getValue( final ExpressionRuntime runtime, final ReportElement element ) { final TimeZone timeZone = runtime.getResourceBundleFactory().getTimeZone(); if ( ObjectUtilities.equal( timeZone, this.timeZone ) == false ) { this.timeZone = timeZone; getDateFormat().setTimeZone( timeZone ); } return super.getValue( runtime, element ); }
public long getVersion( final ResourceKey key ) { if ( ObjectUtilities.equal( key, outsideKey ) ) { return parent.getVersion( parent.getSource() ); } return parent.getVersion( key ); }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { final boolean visible = ObjectUtilities.equal( getElement(), getDataRow().get( getField() ) ); e.getStyle().setStyleProperty( ElementStyleKeys.VISIBLE, visible ); return true; } return false; } }
protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final Attributes atts ) throws SAXException { if ( ObjectUtilities.equal( uri, getUri() ) == false ) { return null; } if ( "row".equals( tagName ) ) { row += 1; return new RowReadHandler( resultTable, row ); } return null; }
protected XmlReadHandler getHandlerForChild( final String uri, final String tagName, final PropertyAttributes attrs ) throws SAXException { if ( ObjectUtilities.equal( uri, getUri() ) == false ) { return null; } if ( "band".equals( tagName ) ) { return super.getHandlerForChild( uri, tagName, attrs ); } return null; }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { final boolean visible = isVisible(); e.getStyle().setStyleProperty( ElementStyleKeys.VISIBLE, visible ); return true; } return false; }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { final Color color = computeColor(); e.getStyle().setStyleProperty( ElementStyleKeys.PAINT, color ); return true; } return false; }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { e.getStyle().setStyleProperty( ElementStyleKeys.VISIBLE, !isDataAvailable() ); return true; } return false; }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { e.getStyle().setStyleProperty( ElementStyleKeys.VISIBLE, isVisible() ); } return true; }
protected boolean evaluateElement( final ReportElement e ) { if ( ObjectUtilities.equal( e.getName(), getElement() ) ) { final boolean visible = computeVisibility(); e.getStyle().setStyleProperty( ElementStyleKeys.VISIBLE, visible ); return true; } return false; }
protected void autoInit() throws ParseException { String tagName = getTagName(); String uri = getUri(); ElementMetaData elementType = ElementTypeRegistry.getInstance().getElementType( tagName ); if ( ObjectUtilities.equal( uri, elementType.getNamespace() ) == false ) { throw new ParseException( "Metadata not registered, and auto-registration does not match namespace" ); } this.metaData = elementType; this.element = createElement(); }