Permits to define a target attribute.
@param name target attribute name
@param customGet custom get method
@param customSet custom set method
@return an instance of TargetAttribute
489395
public static TargetAttribute targetAttribute(String name, String customGet, String customSet){
		return new TargetAttribute(name, customGet, customSet);
	}
678803
public static policydataset_binding get(nitro_service service, String name) throws Exception{
		policydataset_binding obj = new policydataset_binding();
		obj.set_name(name);
		policydataset_binding response = (policydataset_binding) obj.get_resource(service);
		return response;
	}
796519
@Override
    public <E> SetAttribute<? super X, E> getSet(String paramName, Class<E> paramClass)
    {
        PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);

        if (onCheckSetAttribute(declaredAttrib, paramClass))
        {
            return (SetAttribute<X, E>) declaredAttrib;
        }

        PluralAttribute<? super X, ?, ?> superAttrib = getPluralAttriute(paramName);

        if (onCheckSetAttribute(superAttrib, paramClass))
        {
            return (SetAttribute<? super X, E>) superAttrib;

        }
        throw new IllegalArgumentException(
                "attribute of the given name and type is not present in the managed type, for name:" + paramName
                        + " , type:" + paramClass);
    }
908241
public static <T> T getRequestAttribute(ServletRequest req, String name, Class<T> cls, Set<GetOpts> opts, T defaultValue)
	{
		Object o;

		if(req == null)
			throw new NullPointerException("req cannot be null");
		if(name == null)
			throw new NullPointerException("name cannot be null");
		if(cls == null)
			throw new NullPointerException("cls cannot be null");
		if(opts == null)
			opts = EMPTY_OPTS;
		if((o = req.getAttribute(name))==null)
		{
			if(opts.contains(GetOpts.THROW_ON_MISSING))
				throw new IllegalStateException("Request attribute " + name + " is not present.");
			if(opts.contains(GetOpts.LOG_ON_MISSING))
				logger.warn("Request attribute " + name + " is not present.");
			return defaultValue;
		}
		if(!cls.isInstance(o))
		{
			if(opts.contains(GetOpts.THROW_ON_WRONG_TYPE))
				throw new IllegalStateException("Request attribute " + name + " was of type " + o.getClass().getName() + " instead of " + cls.getName());
			if(opts.contains(GetOpts.LOG_ON_MISSING))
				logger.warn("Request attribute " + name + " was of type " + o.getClass().getName() + " instead of " + cls.getName());
			return defaultValue;
		}
		return cls.cast(o);
	}
969338
def get(self, name, strict=True):
        """"""
        if not isinstance(name, str) or name.startswith('_'):
            raise AttributeError(self.__class__.__name__, name)
        elif strict and name not in self._possible_attributes:
            raise AttributeError('%s is not a valid attribute of %r.' %
                                 (name, self))
        elif name in self._attributes:
            return self._attributes[name]
        else:
            raise exceptions.AttributeNotProvided(name)
653075
public Vector<ObjectIdentifier> get(String name) throws IOException {
        if (name.equalsIgnoreCase(USAGES)) {
            //XXXX May want to consider cloning this
            return keyUsages;
        } else {
          throw new IOException("Attribute name [" + name +
                                "] not recognized by " +
                                "CertAttrSet:ExtendedKeyUsageExtension.");
        }
    }
968658
NFRuleSet findRuleSet(String name) throws IllegalArgumentException {
        NFRuleSet result = ruleSetsMap.get(name);
        if (result == null) {
            throw new IllegalArgumentException("No rule set named " + name);
        }
        return result;
    }
1364786
public static ipset_nsip_binding[] get(nitro_service service, String name) throws Exception{
		ipset_nsip_binding obj = new ipset_nsip_binding();
		obj.set_name(name);
		ipset_nsip_binding response[] = (ipset_nsip_binding[]) obj.get_resources(service);
		return response;
	}
252908
@Override
    public Object getAttribute(final String name) {
        return ProfileHelper.getInternalAttributeHandler().restore(this.attributes.get(name));
    }
1098732
@Override
    public Object getAttribute(String name) {
        Object value = this.attributes.get(name);
        if (null == value && null != this.connection.getSSLContext()) {
            // special case logic for SSL based connections
            if (PEER_CERTS.equals(name)
                || SERVLET_CERTS.equals(name)) {
                value = getPeerCertificates();
            } else if (CIPHER_SUITE.equals(name)) {
                value = getCipherSuite();
            } else if (SSL_SESSION.equals(name)) {
                value = this.connection.getSSLContext().getSession();
            }
        }
        return value;
    }
1349537
public static Object getAttribute(Object target, String name) {
    try {
      return InvokerHelper.getAttribute(target, name);
    } catch (InvokerInvocationException e) {
      ExceptionUtil.sneakyThrow(e.getCause());
      return null; // never reached
    }
  }
973551
public static boolean setCustomRequestForDefaultClient(String profileName, String pathName, String customData) {
        try {
            return setCustomForDefaultClient(profileName, pathName, false, customData);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }
1245136
@SuppressWarnings("unchecked")
    public <T> T attribute(String name) {
        return (T) session.getAttribute(name);
    }
940070
public Object getAttributeValue(String name) throws IOException {
        ObjectIdentifier oid = PKCS9Attribute.getOID(name);

        if (oid == null)
            throw new IOException("Attribute name " + name +
                                  " not recognized or not supported.");

        return getAttributeValue(oid);
    }
8600
@Override
    public SetAttribute<? super X, ?> getSet(String paramName)
    {
        PluralAttribute<? super X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);

        if (isSetAttribute(declaredAttrib))
        {
            return (SetAttribute<X, ?>) declaredAttrib;
        }

        declaredAttrib = getPluralAttriute(paramName);

        if (isSetAttribute(declaredAttrib))
        {
            return (SetAttribute<X, ?>) declaredAttrib;
        }

        throw new IllegalArgumentException(
                "attribute of the given name and type is not present in the managed type, for name:" + paramName);
    }
969037
@Override
    public Object getAttribute(String name, ServletRequest request) {
        if (this.isServletContainerManagedAttribute(name)) {
            return request.getAttribute(name);
        }
        return null;
    }
795790
public CreateCustomMetadataRequest withCustomMetadata(java.util.Map<String, String> customMetadata) {
        setCustomMetadata(customMetadata);
        return this;
    }