Examples of Attributes


Examples of asia.redact.bracket.properties.mgmt.Attributes

      props.setContentType(ContentType.getDotPropertiesContentType());
      return props;
    }
   
    public synchronized static Properties loadReferences(List<PropertiesReference> refs){
      Attributes attribs = new Attributes();
      attribs.warnOnNoPropertiesFileExtension = true;
      attribs.useCompatibilityMode = true;
      attribs.locale = Locale.getDefault();
     
      return loadReferences(refs, attribs);
View Full Code Here

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

    protected void extract(CrawlURI curi, CharSequence cs) {
        Source source = new Source(cs);
        List<Element> elements = source.findAllElements(StartTagType.NORMAL);
        for (Element element : elements) {
            String elementName = element.getName();
            Attributes attributes;
            if (elementName.equals(HTMLElementName.META)) {
                if (processMeta(curi, element)) {
                    // meta tag included NOFOLLOW; abort processing
                    break;
                }
View Full Code Here

Examples of classycle.graph.Attributes

  public boolean isFulfilled(Vertex vertex)
  {
    boolean result = false;
    if (vertex != null)
    {
      Attributes attributes = vertex.getAttributes();
      if (attributes instanceof NameAttributes)
      {
        result = _pattern.matches(((NameAttributes) attributes).getName());
      }
    }
View Full Code Here

Examples of codec.pkcs9.Attributes

    public Verifier(Signable sigdat, SignerInfo info, X509Certificate cert)
      throws GeneralSecurityException {
  AlgorithmParameterSpec spec;
  ASN1ObjectIdentifier oid;
  ASN1OctetString octets;
  Attributes attributes;
  Attribute attribute;
  String sigalg;
  String mdalg;

  /*
   * Either a certificate or a SignerInfo is needed. We might do without
   * one of'em but not without both. The SignedData is need in every case.
   */
  if (info == null && cert == null) {
      throw new IllegalArgumentException(
        "Need either a SignerInfo or a certificate!");
  }
  if (sigdat == null) {
      throw new NullPointerException("Need a SignedData!");
  }
  target_ = sigdat;

  /*
   * If the SignerInfo is null then we try to get it from the SignedData.
   */
  if (info == null) {
      info = target_.getSignerInfo(cert);

      if (info == null) {
    throw new NoSuchSignerException("No signer info found for: "
      + cert.getIssuerDN().getName() + ", "
      + cert.getSerialNumber());
      }
  }
  /*
   * If we have a SignerInfo but no certificate the we try and see if we
   * can get it from the SignedData.
   */
  else if (cert == null) {
      cert = target_.getCertificate(info.getIssuerDN(), info
        .getSerialNumber());

      if (cert == null) {
    throw new CertificateException("No certificate available for: "
      + info.getIssuerDN().getName() + ", "
      + info.getSerialNumber());
      }
  }
  /*
   * We have both a SignerInfo and a certificate, now let's see if they
   * have matching issuer and serial number.
   */
  else {
      if (!info.equivIssuerAndSerialNumber(cert)) {
    throw new IllegalArgumentException(
      "SignerInfo and certificate don't match!");
      }
  }
  /*
   * At this point we should have both a SignerInfo and a matching
   * certificate.
   */
  info_ = info;
  cert_ = cert;
  sigalg = info_.getAlgorithm();

  /*
   * We now check for a simple one-step verification or a two-step
   * verification. One-step occurs only in the degenerate case that the
   * content type of the SignedData instance is DATA and there are no
   * authenticated attributes in it.
   *
   * Otherwise we have to check painfully for the various details on
   * required attributes.
   */
  attributes = info_.authenticatedAttributes();
  oid = target_.getContentType();

  if (attributes.size() > 0 || !oid.equals(DATA)) {
      twostep_ = true;

      attribute = info_.authenticatedAttributes().getAttribute(
        CONTENT_TYPE);

View Full Code Here

Examples of com.dotcms.repackage.org.xml.sax.Attributes

     * @return the <code>String</code> representation of the corresponding
     * opening HTML tag.
     */
    public String getOpeningTag() {
        String s = "<" + getQName();
        Attributes localAttributes = getAttributes();
        for (int i = 0; i < localAttributes.getLength(); i++) {
            s += " " + localAttributes.getQName(i) + "=\""
                    + localAttributes.getValue(i) + "\"";
        }
        return s += ">";
    }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.shape.Attributes

    private double         m_dx1, m_dx2, m_dy1, m_dy2;

    @Override
    public void startDrag(DragContext dragContext)
    {
        Attributes attr = dragContext.getNode().asNode().getAttributes();

        m_constraint = attr.getDragConstraint();

        m_bounds = attr.getDragBounds();
       
        if (m_bounds != null)
        {
            double x = attr.getX();
           
            double y = attr.getY();

            if (m_bounds.isX1()) m_dx1 = m_bounds.getX1() - x;
           
            if (m_bounds.isX2()) m_dx2 = m_bounds.getX2() - x;
           
View Full Code Here

Examples of com.foundationdb.server.explain.Attributes

    }


    @Override
    public CompoundExplainer getExplainer(ExplainContext context) {
        Attributes atts = new Attributes();
        if (context.hasExtraInfo(this))
            atts.putAll(context.getExtraInfo(this).get());
        return new DUIOperatorExplainer(getName(), atts, inputOperator, context);
    }
View Full Code Here

Examples of com.granule.parser.Attributes

    }

  private void testInclude(String text,int tagPosition) {
    TagReader s;
    Element includeTag;
    Attributes includeAttributes;
    s = new TagReader(text);
        includeTag = s.getAllElements().get(tagPosition);
        includeAttributes = s.parseAttributes(includeTag);
        assertEquals(includeAttributes.isValueExists("include"), true);
        assertEquals(includeAttributes.getValue("file"), "ff.inc");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.ODatabase.ATTRIBUTES

    Logger.info ("DB now is on " + version + " level");
  }
 
  private void edgeAndClassOptimization(ODatabaseRecordTx db) {
    Logger.info("...enabling edges and vertexes optimization attributes..:");
    ATTRIBUTES attribute = ODatabase.ATTRIBUTES.CUSTOM;
    ((ODatabaseComplex<?>) db).setInternal(attribute,  "useLightweightEdges=false");
    ((ODatabaseComplex<?>) db).setInternal(attribute,  "useClassForEdgeLabel=false");
    ((ODatabaseComplex<?>) db).setInternal(attribute,  "useClassForVertexLabel=false");
    ((ODatabaseComplex<?>) db).setInternal(attribute,  "useVertexFieldsForEdgeLabels=false");
    Logger.info("...done...");
View Full Code Here

Examples of com.rapidminer.example.Attributes

      
       if (exampleSet.getAttributes().getLabel() == null) {
                throw new UserError(this, 105);
            }
      
       Attributes Att = exampleSet.getAttributes();
       AttributeRole ur=Att.getRole("user identification");
       Attribute u=ur.getAttribute();
       AttributeRole ir=Att.getRole("item identification");
       Attribute i=ir.getAttribute();
       Attribute ui=Att.getLabel();
       
        for (Example example : exampleSet) {
         
          double j=example.getValue(u);
          int uid=user_mapping.ToInternalID((int) j);
View Full Code Here
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.