Examples of Attribute

Typical usage (code from the main() method of this class):

...
// Create numeric attributes "length" and "weight"
Attribute length = new Attribute("length");
Attribute weight = new Attribute("weight");

// Create vector to hold nominal values "first", "second", "third"
FastVector my_nominal_values = new FastVector(3);
my_nominal_values.addElement("first");
my_nominal_values.addElement("second");
my_nominal_values.addElement("third");

// Create nominal attribute "position"
Attribute position = new Attribute("position", my_nominal_values);
...

@author Eibe Frank (eibe@cs.waikato.ac.nz) @version $Revision: 1.44 $

  • org.jasig.portal.portlets.Attribute
    Simple class that wraps a string and provides a getter/setter. Nessescary for binding into the value of a Map in WebFlow @author Eric Dalquist @version $Revision$
  • org.jboss.as.clustering.jgroups.subsystem.ProtocolMetricsHandler.Attribute
  • org.jboss.as.controller.parsing.Attribute
  • org.jboss.as.jaxr.JAXRConstants.Attribute
  • org.jboss.as.jaxr.extension.JAXRConstants.Attribute
  • org.jboss.as.model.Attribute
  • org.jboss.dna.common.jdbc.model.api.Attribute
    Provides User Defined Type (UDT) attribute specific metadata. @author Sergiy Litsenko @since 1.4 (JDBC 3.0)
  • org.jboss.identity.idm.api.Attribute
    Abstract representation of attribute related to IdentityType object. Can have many values @author Boleslaw Dawidowicz @version : 0.1 $
  • org.jboss.netty.handler.codec.http.multipart.Attribute
    Attribute interface
  • org.jboss.security.xacml.sunxacml.ctx.Attribute
    Represents the AttributeType XML type found in the context schema. @since 1.0 @author Seth Proctor
  • org.jdom.Attribute
    An XML attribute. Methods allow the user to obtain the value of the attribute as well as namespace and type information. @version $Revision: 1.56 $, $Date: 2007/11/10 05:28:58 $ @author Brett McLaughlin @author Jason Hunter @author Elliotte Rusty Harold @author Wesley Biggs @author Victor Toni
  • org.jdom2.Attribute
  • org.jmxdatamart.Extractor.Attribute
    This class contains information related to any given attribute such as name, alias and its data type @author Binh Tran
  • org.jrdf.query.relation.Attribute
    The attribute-name:type-name combination. @author Andrew Newman @version $Revision: 2894 $
  • org.jresearch.flexess.umi.api.impl.Attribute
  • org.jsoup.nodes.Attribute
    A single key + value attribute. Keys are trimmed and normalised to lower-case. @author Jonathan Hedley, jonathan@hedley.net
  • org.jvnet.hk2.config.Attribute
    experimental thread local class for tracing inhabitant initialization and module resolution @author Jerome Dochez
  • org.kxml.Attribute
    Attribute class, used by both kDom and the pullparser. The instances of this class are immutable. This restriction allows manipulation aware element implementations without needing to care about hidden changes in attributes.
  • org.mapfish.print.attribute.Attribute
    Represents an attribute passed in from a web-client to be used to populate the report. It reads a value from the request data

    @author jesseeichar on 2/21/14.

  • org.mizartools.dli.Attribute
  • org.mybatis.generator.api.dom.xml.Attribute
    @author Jeff Butler
  • org.myphotodiary.model.Attribute
  • org.nasutekds.server.types.Attribute
    This class defines a data structure for storing and interacting with an attribute that may be used in the Directory Server.

    Attributes are immutable and therefore any attempts to modify them will result in an {@link UnsupportedOperationException}.

    There are two types of attribute: real attributes and virtual attributes. Real attributes can be created using the {@link AttributeBuilder} class or by using the various staticfactory methods in the {@link Attributes} class, whereas virtualattributes are represented using the {@link VirtualAttribute}class. New attribute implementations can be implemented by either implementing this interface or by extending {@link AbstractAttribute}.

  • org.nutz.repo.org.objectweb.asm.Attribute
    A non standard class, field, method or code attribute. @author Eric Bruneton @author Eugene Kuleshov
  • org.nxplanner.domain.Attribute
  • org.objectweb.asm.Attribute
    A non standard class, field, method or code attribute. @author Eric Bruneton, Eugene Kuleshov
  • org.omg.uml.foundation.core.Attribute
  • org.openengsb.domain.userprojects.model.Attribute
    Note: To make sure that this object can be managed properly by the EDB it is recommended to call the generateUuid method after setting all object attributes.
  • org.opengis.feature.Attribute
    An extension of Property for an attribute, or data.

    The notion of an "attribute" is similar to that of an attribute in UML.

    This interface is capable of modelling "primitive data", things like strings, numerics, dates, etc... However for "complex data" (that is non-primitive data types which are made up other primitive data types), a specific sub-interface is used, see {@link ComplexAttribute}.

    An analogy for an attribute is a "field" in a java object. A field also brings together a field name, value and type.

    Identifiable

    When an attribute is identifiable the {@link #getID()} method returns aunique identifier for the attribute. The type of the attribute is used to determine identifiability.
     Attribute attribute = ...; if ( attribute.getType().isIdentified() ) { String id = attribute.getID(); } 

    Validation

    An attribute may hold any value at runtime; checking that the value meets the constraints supplied by the AttributeType is the work of the validate() method. @see Property @author Jody Garnett (Refractions Research) @author Justin Deoliveira (The Open Planning Project) @source $URL$
  • org.openquark.util.attributes.Attribute
    An Attribute is an association of a String (the name) and an Object (the value, or list of values). This class is immutable.
  • org.opensaml.saml1.core.Attribute
    This interface defines how the object representing a SAML 1 Attribute element behaves.
  • org.opensaml.saml2.core.Attribute
    SAML 2.0 Core Attribute.
  • org.openxri.saml.Attribute
    This class provides encapsulation of a SAML 2.0 Attribute element @author =chetan
  • org.osmorc.manifest.lang.psi.Attribute
    @author Robert F. Beeger (robert@beeger.net)
  • org.ow2.asm.Attribute
    A non standard class, field, method or code attribute. @author Eric Bruneton @author Eugene Kuleshov
  • org.palo.api.Attribute
  • org.pentaho.aggdes.model.Attribute
  • org.picketlink.idm.api.Attribute
  • org.picketlink.idm.model.Attribute
  • org.python.antlr.ast.Attribute
  • org.python.pydev.parser.jython.ast.Attribute
  • org.richfaces.dtd.Attribute
    @author Maksim Kaszynski
  • org.sgx.yuigwt.yui.attr.Attribute
    ary.com/yui/docs/api/classes/Attribute.html @see http://yuilibrary.com/yui/docs/api/classes/AttributeCore.html @author sg
  • org.springframework.ide.eclipse.webflow.core.internal.model.Attribute
    @author Christian Dupuis @since 2.0
  • org.swixml.Attribute
    Class for store attribute info. @author Alex Buloichik
  • org.thymeleaf.dom.Attribute

    Models an element attribute.

    @author Daniel Fernández @since 2.0.0
  • org.twdata.maven.mojoexecutor.MojoExecutor.Attribute
  • org.vietspider.token.attribute.Attribute
    @author nhuthuanEmail: nhudinhthuan@yahoo.com
  • org.w3c.tools.resources.Attribute
    Instances of this class describe an attribute of a resource.
  • org.waveprotocol.wave.model.document.operation.util.ImmutableStateMap.Attribute
  • org.wildfly.extension.rts.configuration.Attribute
  • org.wso2.carbon.databridge.commons.Attribute
  • org.xulfaces.annotation.faces.ATTRIBUTE
  • org.xulfaces.annotation.taglib.ATTRIBUTE
  • org.zkoss.idom.Attribute
    The iDOM attribute.

    Design decision: Attribute is also a item. The reason is it simplifies the use of xpath. A xpath migt return either elements or attributes, so... @author tomyeh @see Element

  • proguard.classfile.attribute.Attribute
    This abstract class represents an attribute that is attached to a class, a class member, or a code attribute. Specific types of attributes are subclassed from it. @author Eric Lafortune @noinspection AbstractClassWithoutAbstractMethods
  • pt.webdetails.cdf.dd.model.core.Attribute
    @author dcleao
  • ptolemy.kernel.util.Attribute
    Attribute is a base class for attributes to be attached to instances of NamedObj. This base class is itself a NamedObj, with the only extension being that it can have a container. The setContainer() method puts this object on the list of attributes of the container. @author Edward A. Lee, Neil Smyth @version $Id: Attribute.java,v 1.84 2007/12/07 06:24:46 cxh Exp $ @since Ptolemy II 0.2 @Pt.ProposedRating Green (eal) @Pt.AcceptedRating Green (johnr)
  • railo.transformer.bytecode.statement.tag.Attribute
  • ro.isdc.wro.http.support.ServletContextAttributeHelper.Attribute
  • ucar.nc2.Attribute
    An Attribute has a name and a value, used for associating arbitrary metadata with a Variable or a Group. The value can be a one dimensional array of Strings or numeric values.

    Attributes are immutable. @author caron

  • uk.org.glendale.yags.core.stats.Attribute
  • vg.core.graph.Attribute
    This class realizes something attribute. @author tzolotuhin
  • weblogic.xml.stream.Attribute
    An interface that contains information about an attribute @since Weblogic XML Input Stream 1.0 @version 1.0 @see weblogic.xml.stream.XMLName @see weblogic.xml.stream.Attribute
  • weka.core.Attribute
    so.org/iso/en/prods-services/popstds/datesandtime.html" target="_blank"> ISO-8601 compliant, the default is yyyy-MM-dd'T'HH:mm:ss.
  • relational:
    This type of attribute can contain other attributes and is, e.g., used for representing Multi-Instance data. (Multi-Instance data consists of a nominal attribute containing the bag-id, then a relational attribute with all the attributes of the bag, and finally the class attribute.)
  • Typical usage (code from the main() method of this class):

    ...
    // Create numeric attributes "length" and "weight"
    Attribute length = new Attribute("length");
    Attribute weight = new Attribute("weight");

    // Create list to hold nominal values "first", "second", "third"
    List my_nominal_values = new ArrayList(3);
    my_nominal_values.add("first");
    my_nominal_values.add("second");
    my_nominal_values.add("third");

    // Create nominal attribute "position"
    Attribute position = new Attribute("position", my_nominal_values);
    ...

    @author Eibe Frank (eibe@cs.waikato.ac.nz) @version $Revision: 6889 $

  • wpn.hdri.ss.data.attribute.Attribute
    Stores values and corresponding read/write timestamps

    Implementation is thread safe but does not guarantee that underlying map won't be changed while reading

    This class contains most of the logic linked with storing values. The subclasses specify the way how a value is being added. @author Igor Khokhriakov @since 27.04.12

  • xtc.tree.Attribute
    A name/value pair. @author Robert Grimm @version $Revision: 1.12 $

  • Examples of Methods.Atributtes.Attribute

        }
       
        @Test
        public void ResultTestComposite() throws FileNotFoundException, IOException{

            Attribute atributes;
            MediaLinesMethods medialinesmethods = null;

            ReaderFile readerfile = new ReaderFile("src/Package/Files/FilesFolders.java");
            ReaderMethod readermethod = new ReaderMethod(readerfile, "");

            File folder = new File("src");

            FilesFolders numfiles = new FilesFolders(folder);

            Classes numclasses = new Classes(readerfile);

            Packages packages = new Packages(new File("src"));

            ArrayList<String> arrayfiles = numfiles.getArrayListFiles();

            for (String path : arrayfiles) {

                System.out.println("-------" + path + "-------");

                readerfile = new ReaderFile(path);

                Metric composite = new Composite();

                Metric clases = new Classes(readerfile);
                Metric methods = new Methods(readerfile);
                Metric lineseffectives = new LinesEffectives(readerfile);
                Metric lines = new Lines(readerfile);
                atributes = new Attribute(readerfile);
                Metric construct = new Construct(readerfile);
                Metric parameters = new Parameter(readerfile);
                parameters.getArrayInfo(readerfile);
                Metric numfor = new NumberOfFor(readermethod);
                Metric numif = new NumberOfIf(readermethod);
    View Full Code Here

    Examples of aleksandar.djuric.entities.Attribute

                    String tmp1 = tmp.substring(
                        tmp.indexOf("(") + 1,
                        tmp.indexOf(")"));
                    try
                    {
                      attribs[j] = new Attribute(
                          Double.parseDouble(tmp1));
                    }
                    catch(NumberFormatException e)
                    {
                      attribs[j] = new Attribute(
                          tmp.substring(
                              tmp.lastIndexOf("  ") + 2,
                              tmp.lastIndexOf(" ")));
                    }
                  }
    View Full Code Here

    Examples of alt.jiapi.file.Attribute

        Attribute getAttribute(String name) {
            List l = method.getAttributes();
            Iterator i = l.iterator();

            while(i.hasNext()) {
                Attribute a = (Attribute)i.next();
                if (a != null) { // NOTE: Should never be null
                    if (a.getName().equals(name)) {
                        return a;
                    }
                }
            }
    View Full Code Here

    Examples of anvil.parser.Attribute

        }
       
        if (_on_attribute != null) {
          int n = tag.getLength();
          for(int i=0; i<n; i++) {
            Attribute attr = tag.getAttribute(i);
            _on_attribute.execute(_context,
              line, column, Any.create(attr.getName()), Any.create(attr.getValue()));
          }
         
        } else {
          int n = tag.getLength();
          for(int i=0; i<n; i++) {
            _context.print(" ");
            Attribute attr = tag.getAttribute(i);
            _context.print(attr.getName());
            String s = attr.getValue();
            if (s != null) {
              _context.print("=&quot;");
              _context.print(Conversions.encodeEntities(s));
              _context.print("&quot;");
            }
    View Full Code Here

    Examples of anvil.script.statements.taglib.Attribute

      public void parse(TemplateParser parser, anvil.parser.Tag tag)
      {
        ArrayList nodes = new ArrayList();
        Enumeration e = _tagdef.getAttributes();
        while(e.hasMoreElements()) {
          Attribute attr = (Attribute)e.nextElement();
          String name = attr.getName();
          String value = tag.getValue(attr.getName());
          if (value == null) {
            if (attr.isRequired()) {
              parser.error(parser.getLocation(), "Required attribute '"+name+"' missing");
            } else {
              value = attr.getDefault();
            }
          }
          if (value != null) {
            Node node = ConstantNode.UNDEFINED;
            switch(attr.getType()) {
            case Attribute.TYPE_STRING:
              node = new ConstantNode(Any.create(value));
              break;

            case Attribute.TYPE_DOUBLE:
              try {
                node = new ConstantNode(Any.create(Double.parseDouble(value)));
              } catch (NumberFormatException nfe) {
                parser.error(parser.getLocation(), "Value of attribute '"+name+"' is not a floating point number");
              }
              break;

            case Attribute.TYPE_INT:
              try {
                node = new ConstantNode(Any.create(anvil.util.Conversions.parseNumberUnsafe(value)));
              } catch (NumberFormatException nfe) {
                parser.error(parser.getLocation(), "Value of attribute '"+name+"' is not an integer");
              }
              break;
             
            case Attribute.TYPE_BOOLEAN:
              node = new ConstantNode(Any.create(Any.IS_BOOLEAN, value));
              break;
               
            case Attribute.TYPE_EXPR:
              value = value.trim();
              if (value.length() > 0) {
                ExpressionParser p = new ExpressionParser(parser, parser.getLocation(), value);
                node = p.parseExpression(p.TYPE_VALUE).getChild();
              } else {
                node = ConstantNode.UNDEFINED;
              }
              break;
            }
            nodes.add(new MappingNode(new ConstantNode(name), node));
          }
        }
        if (_tagdef.allowAnyAttributes()) {
          Iterator iter = _tag.getAttributes();
          while(iter.hasNext()) {
            anvil.parser.Attribute attr = (anvil.parser.Attribute)iter.next();
            String name = attr.getName();
            if (!_tagdef.hasAttribute(name)) {
              nodes.add(new MappingNode(
                new ConstantNode(name),
                new ConstantNode(attr.getValue())));
            }
          }
        }

        int n = nodes.size();
    View Full Code Here

    Examples of at.bestsolution.efxclipse.tooling.rrobot.model.bundle.Attribute

    import at.bestsolution.efxclipse.tooling.rrobot.model.bundle.Element;
    import at.bestsolution.efxclipse.tooling.rrobot.model.bundle.Extension;

    public class ExtensionFactory {
      public static void createAttribute(Element el, String name, String value) {
        Attribute att = BundleFactory.eINSTANCE.createAttribute();
        att.setName(name);
        att.setValue(value);
        el.getAttributes().add(att);
      }
    View Full Code Here

    Examples of au.id.jericho.lib.html.Attribute

        }


        protected void processGeneralTag(CrawlURI curi, Element element,
                Attributes attributes) {
            Attribute attr;
            String attrValue;
            List<Attribute> attrList;
            String elementName = element.getName();

            // Just in case it's an OBJECT or APPLET tag
            String codebase = null;
            ArrayList<String> resources = null;

            final boolean framesAsEmbeds = getTreatFramesAsEmbedLinks();

            final boolean ignoreFormActions = getIgnoreFormActionUrls();
           
            final boolean overlyEagerLinkDetection = getExtractValueAttributes();

            // HREF
            if (((attr = attributes.get("href")) != null) &&
                ((attrValue = attr.getValue()) != null)) {
                CharSequence context = elementContext(elementName, attr
                        .getKey());
                if ("link".equals(elementName)) {
                    // <LINK> elements treated as embeds (css, ico, etc)
                    processEmbed(curi, attrValue, context);
                } else {
                    // other HREFs treated as links
                    processLink(curi, attrValue, context);
                }
                if ("base".equals(elementName)) {
                    try {
                        UURI base = UURIFactory.getInstance(attrValue);
                        curi.setBaseURI(base);
                    } catch (URIException e) {
                        logUriError(e, curi.getUURI(), attrValue);
                    }
                }
            }
            // ACTION
            if (((attr = attributes.get("action")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                if (!ignoreFormActions) {
                    CharSequence context = elementContext(elementName, attr
                            .getKey());
                    processLink(curi, attrValue, context);
                }
            }
            // ON_
            if ((attrList = findOnAttributes(attributes)).size() != 0) {
                for (Iterator<Attribute> attrIter = attrList.iterator(); attrIter.hasNext();) {
                    attr = (Attribute) attrIter.next();
                    CharSequence valueSegment = attr.getValueSegment();
                    if (valueSegment != null)
                        processScriptCode(curi, valueSegment);

                }
            }
            // SRC atc.
            if ((((attr = attributes.get("src")) != null)
                    || ((attr = attributes.get("lowsrc")) != null)
                    || ((attr = attributes.get("background")) != null)
                    || ((attr = attributes.get("cite")) != null)
                    || ((attr = attributes.get("longdesc")) != null)
                    || ((attr = attributes.get("usemap")) != null)
                    || ((attr = attributes.get("profile")) != null)
                    || ((attr = attributes.get("datasrc")) != null)) &&
                       ((attrValue = attr.getValue()) != null)) {

                final Hop hopType;
                CharSequence context = elementContext(elementName, attr.getKey());

                if (!framesAsEmbeds
                        && ("frame".equals(elementName) || "iframe"
                                .equals(elementName)))
                    hopType = Hop.NAVLINK;
                else
                    hopType = Hop.EMBED;

                processEmbed(curi, attrValue, context, hopType);
            }
            // CODEBASE
            if (((attr = attributes.get("codebase")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                codebase = StringEscapeUtils.unescapeHtml(attrValue);
                CharSequence context = elementContext(elementName, attr.getKey());
                processEmbed(curi, codebase, context);
            }
            // CLASSID DATA
            if ((((attr = attributes.get("classid")) != null)
                    || ((attr = attributes.get("data")) != null)) &&
                       ((attrValue = attr.getValue()) != null)) {
                if (resources == null)
                    resources = new ArrayList<String>();
                resources.add(attrValue);
            }
            // ARCHIVE
            if (((attr = attributes.get("archive")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                if (resources == null)
                    resources = new ArrayList<String>();
                String[] multi = TextUtils.split(WHITESPACE, attrValue);
                for (int i = 0; i < multi.length; i++) {
                    resources.add(multi[i]);
                }
            }
            // CODE
            if (((attr = attributes.get("code")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                if (resources == null)
                    resources = new ArrayList<String>();
                // If element is applet and code value does not end with
                // '.class' then append '.class' to the code value.
                if (APPLET.equals(elementName) && !attrValue.endsWith(CLASSEXT)) {
                    resources.add(attrValue + CLASSEXT);
                } else {
                    resources.add(attrValue);
                }
            }
            // VALUE
            if (((attr = attributes.get("value")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                CharSequence valueContext = elementContext(elementName, attr.getKey());
                if("PARAM".equalsIgnoreCase(elementName)
                        && "flashvars".equalsIgnoreCase(attributes.get("name").getValue())) {
                    // special handling for <PARAM NAME='flashvars" VALUE="">
                    String queryStringLike = attrValue.toString();
                    // treat value as query-string-like "key=value[;key=value]*" pairings
                    considerQueryStringValues(curi, queryStringLike, valueContext,Hop.SPECULATIVE);
                } else {
                    // regular VALUE handling
                    if (overlyEagerLinkDetection) {
                        considerIfLikelyUri(curi,attrValue,valueContext,Hop.NAVLINK);
                    }
                }
            }
            // STYLE
            if (((attr = attributes.get("style")) != null) &&
                     ((attrValue = attr.getValue()) != null)) {
                // STYLE inline attribute
                // then, parse for URIs
                numberOfLinksExtracted.addAndGet(ExtractorCSS.processStyleCode(
                        this, curi, attrValue));
            }
           
            // FLASHVARS
            if (((attr = attributes.get("flashvars")) != null) &&
                    ((attrValue = attr.getValue()) != null)) {
                // FLASHVARS inline attribute
                CharSequence valueContext = elementContext(elementName, attr.getKey());
                considerQueryStringValues(curi, attrValue, valueContext,Hop.SPECULATIVE);
           }

            // handle codebase/resources
            if (resources == null)
    View Full Code Here

    Examples of ca.eandb.jmist.framework.loader.openexr.attribute.Attribute

          String type = StreamUtil.readNullTerminatedString(source);
          int size = source.readInt();

          source.flush();
          Attribute attribute = factory.create(type, size, source);

          if (attribute != null) {
            attributes.put(name, attribute);
          }
    View Full Code Here

    Examples of ca.svarb.jyacl.Attribute

      public OptionInvocationHandler(Map<String, Object> getterMap) {
        this.getterMap=getterMap;
      }

      public Object invoke(Object proxy, Method method, Object[] args) {
        String attributeName = new Attribute(method.getName()).getName();
        if ( !getterMap.containsKey(attributeName) ) {
          throw new IllegalStateException("No value provided in getterMap for \""+attributeName+"\" attribute.");
        }
        Object value = getterMap.get(attributeName);
        return value;
    View Full Code Here

    Examples of cambridge.model.Attribute

            return new BehaviorProvider<FromBehavior>() {
                public FromBehavior get(DynamicAttribute keyAttribute, Map<AttributeKey, Attribute> attributes, int line, int col) throws ExpressionParsingException, BehaviorInstantiationException {
                    Expression from = keyAttribute.getExpression();
                    AttributeKey toKey = new AttributeKey(keyAttribute.getAttributeNameSpace(), "to");

                    Attribute toAttribute = attributes.get(toKey);

                    if (toAttribute == null || !(toAttribute instanceof DynamicAttribute)) {
                        throw new BehaviorInstantiationException("Required parameters to is not set", line, col);
                    }
    View Full Code Here
    TOP
    Copyright © 2015 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.