Examples of addAttribute()


Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.DummyEntry.addAttribute()

            {
                IAttribute rdnAttribute = newEntry.getAttribute( newRdnParts[i].getType() );
                if ( rdnAttribute == null )
                {
                    rdnAttribute = new Attribute( newEntry, newRdnParts[i].getType() );
                    newEntry.addAttribute( rdnAttribute );
                }
                String rdnValue = newRdnParts[i].getUnencodedValue();
                String[] stringValues = rdnAttribute.getStringValues();
                if ( !Arrays.asList( stringValues ).contains( rdnValue ) )
                {

Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.Entry.addAttribute()

                    if ( SchemaUtils.isModifyable( attributeToCopy.getAttributeTypeDescription() )
                        || IAttribute.REFERRAL_ATTRIBUTE.equalsIgnoreCase( attributeToCopy.getDescription() ) )
                    {
                        IAttribute newAttribute = new Attribute( newEntry, attributeToCopy.getDescription() );
                        newEntry.addAttribute( newAttribute );
                        IValue[] valuesToCopy = attributeToCopy.getValues();
                        for ( int j = 0; j < valuesToCopy.length; j++ )
                        {
                            IValue valueToCopy = valuesToCopy[j];
                            IValue newValue = new Value( newAttribute, valueToCopy.getRawValue() );

Examples of org.apache.directory.studio.ldapbrowser.core.model.IEntry.addAttribute()

                        // add new value
                        IAttribute attribute = entry.getAttribute( newAttributeDescription );
                        if ( attribute == null )
                        {
                            attribute = new Attribute( entry, newAttributeDescription );
                            entry.addAttribute( attribute );
                        }
                        newValue = new Value( attribute, oldValue.getRawValue() );
                        attribute.addValue( newValue );

                        // prepare event

Examples of org.apache.directory.studio.ldapbrowser.core.model.impl.DummyEntry.addAttribute()

            // set new objectClass values
            IAttribute ocAttribute = newEntry.getAttribute( SchemaConstants.OBJECT_CLASS_AT );
            if ( ocAttribute == null )
            {
                ocAttribute = new Attribute( newEntry, SchemaConstants.OBJECT_CLASS_AT );
                newEntry.addAttribute( ocAttribute );
            }
            IValue[] values = ocAttribute.getValues();
            for ( IValue value : values )
            {
                ocAttribute.deleteValue( value );

Examples of org.apache.ecs.CharacterFilter.addAttribute()

    }

    private void constructValue( Node node )
    {
        CharacterFilter cf = new CharacterFilter();
        cf.addAttribute("\"",Entities.QUOT);
       
        if( node.getNodeName().equals("#text")
            && node.getNodeValue().length() > 1 )
        {
            System.out.print(".addElement(\"");

Examples of org.apache.ecs.filter.CharacterFilter.addAttribute()

     * @return A CharacterFilter to do HTML filtering.
     */
    private static CharacterFilter htmlFilter()
    {
        CharacterFilter filter = new CharacterFilter();
        filter.addAttribute("\"", Entities.QUOT);
        filter.addAttribute("'", Entities.LSQUO);
        filter.addAttribute("&", Entities.AMP);
        filter.addAttribute("<", Entities.LT);
        filter.addAttribute(">", Entities.GT);
        return filter;

Examples of org.apache.ecs.html.Body.addAttribute()

                .setBorder(0)
                .setCellPadding(0)
                .setCellSpacing(0)
                .addElement(topRow)
                .addElement(menuRow));
            body.addAttribute("leftmargin", "0");
            body.addAttribute("topmargin", "0");
            body.addAttribute("marginwidth", "0");
            body.addAttribute("marginheight", "0");

            Document document = new Document()

Examples of org.apache.ecs.html.Div.addAttribute()

        // -----------
        // Title table
        // -----------
        Div titleDiv = new Div();
        titleDiv.addAttribute("align", AlignType.RIGHT);

        // Location path
        if(path != null)
            titleDiv.addElement(path);
        // Help link

Examples of org.apache.ecs.html.FrameSet.addAttribute()

                    .setMarginWidth("0")
                    .setMarginHeight("0")
                    .setScrolling(Frame.auto)
                    .setFrameBorder(false)
                    .setNoResize(true));
            frameset.addAttribute("border", "0");

            NoFrames noframes = new NoFrames().addElement(new Body()
                .setBgColor(HtmlColor.white)
                .setText(HtmlColor.black)
                .addElement(new B().addElement("Smilehouse OpenSyncro"))

Examples of org.apache.ecs.html.Table.addAttribute()

        // --------------------------
        // Table with the menu titles
        // --------------------------
        Table menuTable = new Table().setBorder(0).setCellSpacing(0).setCellPadding(0);
        menuTable.addAttribute("BACKGROUND", bgImage);

        if(widthVector.size() > 0) {
            // We'll count the total width of the table as we go
            int tableWidth = ((Integer) widthVector.get(0)).intValue();
            TR menuRow = new TR().setVAlign(AlignType.TOP)
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.