Code example for Node

Methods: getAttributes

0
{ 
    private String value = null, style = null;
     
    public OperationEntry( Node entry )
    { 
        super( entry );
 
        NamedNodeMap fields = entry.getAttributes();
        this.value = APIUtil.getField( fields, "value" );
 
        String style = APIUtil.getField( fields, "style" );
        if( style != null )
            this.style = style;
    } 
 
    //TODO: Make operation parser 
    public Value buildCode( APIMapping mapping, Value target, LinkedList<Value> params )
    { 
        LinkedList<Value> p = (LinkedList<Value>)params.clone();
        p.addFirst( target );